Support » Plugin: More-Lang » Deprecated use of ‘create_function’

  • Resolved voodoos



    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 !

    • This topic was modified 1 year ago by voodoos.
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.