• The latest version of the plugin generates the warning if debugging is enabled:
    PHP Notice: ?Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>yoimg</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later.

    To fix in:
    /wp-content/plugins/yoimages/vendor/sirulli/yoimages-commons/inc/init.php

    replace:
    load_plugin_textdomain ( YOIMG_DOMAIN, FALSE, YOIMG_LANG_REL_PATH );

    with:
    function yoimg_redirection_locale() {
    load_plugin_textdomain ( YOIMG_DOMAIN, FALSE, YOIMG_LANG_REL_PATH );
    }
    add_action( 'init', 'yoimg_redirection_locale' );

  • You must be logged in to reply to this topic.