Php warning
-
Hi Shea Bunge,
After update to php 7.2, I received this error:
PHP Warning: Use of undefined constant __return_true - assumed '__return_true' (this will throw an Error in a future version of PHP) in /home/dedohopw/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(433) : eval()'d code on line 1
These are snippets that currently activated on my website:
1. `function currentpage_qr_code($atts){extract(shortcode_atts(array(‘size’=>’100′),$atts));global $post;return'<img src=”https://api.qrserver.com/v1/create-qr-code/?size=’.$size.’x’.$size.’&data=’.get_permalink($post->ID).'” alt=”‘.$post->post_title.'”/>’;}
add_shortcode(‘qrcode’,’currentpage_qr_code’);`2. `function dequeue_devicepx(){wp_dequeue_script(‘devicepx’);}
add_action(‘wp_enqueue_scripts’,’dequeue_devicepx’,20);`3.
add_filter('autoptimize_filter_css_datauri_maxsize','my_ao_override_dataursize',10,1);function my_ao_override_dataursize($urisizeIn){return 3072;}
4.
add_filter('autoptimize_filter_cache_create_static_gzip',__return_true);
5. `add_action( ‘et_pb_admin_excluded_shortcodes’, ‘toc_shortcode’);
function toc_shortcode($shortcodes) {
$shortcodes[] = ‘toc’;
return $shortcodes;
}`There’re more snippets but inactive.
Is your plugin compatible with php.7.2?
Regards,
Phibu Reza.The page I need help with: [log in to see the link]
- The topic ‘Php warning’ is closed to new replies.