Support » Plugin: WpDevArt Social Like Box Widget » PHP error: Function create_function() is deprecated

  • springthistle

    (@springthistle)


    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)
  • Plugin Author smplug-in

    (@smplug-in)

    Hi dear user.

    Thanks a lot for this information, we will update our plugin and add this code on upcoming days.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error: Function create_function() is deprecated’ is closed to new replies.