Hi, could it be you pasted your question in the wrong place? The plugin is fully PHP7 compatible and the file you talk about is not part of the plugin. Maybe this refers to the plugin “Better Search Replace Pro”.
Thread Starter
laraej
(@laraej)
Hi, sorry I had copied the wrong warning message. But I am actually referring to your plugin, Compress JPEG & PNG images as below:
FILE: /wp-content/plugins/tiny-compress-images/src/class-tiny-notices.php
—————————————————————————————–
134 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
—————————————————————————————–
Just wondering if you know about this warning and if something needs to be done about it.
Thanks in advance.
Ok thanks. It is a deprecation warning so that sounds like something we will definitely address in one of the next updates!
Thread Starter
laraej
(@laraej)
That would be good, thanks!
Hi there just updated to version 3.0 of your plugin.
Unfortunately the warning still occurs on two instances.
tiny-compress-images/src/class-tiny-notices.php
134 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
169 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
Can you please integrate a fix for this in the next version. Fix is pretty easy see PHP Manual.
Thank you, have a nice day.
Tobias
Hi Tobias,
Thanks for bringing this to our attention again. We indeed forgot to address it in 3.0.0, but since we also introduced a bug in 3.0.0 that we wanted to quickly fix, we’ve just released 3.0.1 in which you no longer should get these warnings as we no longer use create_function().