Deprecated use of ‘create_function’
-
Hi,
In PHP 7.2 the
create_function
function is deprecated.
The problem is that in dev mode the printing of the warning causes
a bunch of “header already sent” messages.The fix is simple and I would have happily made a pull request but I am not sure of the procedure using SVN.
In file
inc/ml_switcher.php
Line 113 should be modified using an anonymous function:add_action( 'widgets_init', function () { return register_widget("morelang\MorelangWidget"); } );
Thanks in advance for the fix !
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Deprecated use of ‘create_function’’ is closed to new replies.