PHP error: Function create_function() is deprecated
-
Your plugin is generating a PHP error, and it is:
PHP Deprecated: Function create_function() is deprecated in [...]/wp-content/plugins/like-box/includes/widget.php on line 179
I have fixed this by replacing line 179 from this:
add_action('widgets_init', create_function('', 'return register_widget("like_box_facbook");'));
to this:
add_action('widgets_init', 'like_box_register_widget'); function like_box_register_widget() { return register_widget("like_box_facbook"); }
Please do the same so that I don’t have to fix the plugin after every update.
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP error: Function create_function() is deprecated’ is closed to new replies.