• Function create_function() is deprecated in /path/to/wordpress/wp-content/plugins/shariff/shariff.php on line 1491

    add_action( 'widgets_init', create_function( '', 'return register_widget("ShariffWidget");' ) );

    should be

    add_action( 'widgets_init', function(){
    	register_widget( 'ShariffWidget' );
    });
Viewing 1 replies (of 1 total)
  • Plugin Author Jan-Peter

    (@starguide)

    Hey gbyat,

    anonymous functions would unfortunately break support for PHP 5.2 and since WordPress is still not dropping it, this would break peoples sites or I would need to add in checks to disable our plugin in case PHP 5.2 is present. On the good side, I already found a different way around, so that deprecated warning should be gone with the next release.

    Cheers
    Jan-Peter

Viewing 1 replies (of 1 total)

The topic ‘PHP Deprecated’ is closed to new replies.