Use of create_function is deprecated and highly discouraged since PHP 7.2
-
Hi there,
There is an issue with the Download Manager plugin with PHP version >= 7.2.
The create_function method has been deprecated, and is now ‘Highly Discouraged’: https://www.php.net/manual/en/function.create-function.phpThe use of create_function appears in: /widgets/class.CatPackages.php:
> add_action(‘widgets_init’, create_function(”, ‘return register_widget(“WPDM_CatPackages”);’));Could you please consider changing this for an anonymous function for compatibility with PHP >= 7.2, for example:
> add_action(‘widgets_init’, function() { return register_widget(“WPDM_CatPackages”); } );
There are other areas where this function appears, include all other widget registering action hooks, and a filter in /tpls/media-tab.php.
Thank you,
Connect.
- The topic ‘Use of create_function is deprecated and highly discouraged since PHP 7.2’ is closed to new replies.