create_function deprecated in PHP v7.2
-
Your “widgets_init” action uses the deprecated create_function() method, which causes warnings to be thrown in PHP >= 7.2.
Please change the code to use a PHP anonymous function, supported since PHP v5.3 and is compatible with the WordPress minimum requirement of PHP v5.6.
add_action('widgets_init', function() { register_widget("wpInsertAdWidget"); });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘create_function deprecated in PHP v7.2’ is closed to new replies.