Open raamdev opened 6 years ago
Looks like all of these could now be updated. We can use Closures instead of create_function()
now that we have a 5.3 minimum. http://php.net/manual/en/migration53.new-features.php
It looks like we actually don't want to use Closures in plugin.php
, since the code in that file where we use create_function()
is code designed to show error notices for users running PHP < v5.4, which means using Closures there would actually break that code and not do what it's supposed to do (show a message when a user tries to run Comet Cache with PHP < 5.4).
Reported here: https://wordpress.org/support/topic/version-170220-function-create_function-is-deprecated-in-php-7-2/