•  PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>math-captcha</code> domain was triggered too early.

    // This warning fills up log file.
    // include_once(MATH_CAPTCHA_PATH . 'includes/class-core.php'); // This loads first.
    // so , add_action('plugins_loaded', array($this, 'load_defaults')); // hits first

    // And hook in wp-math-captcha.php, hits after.
    add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );

    // so moving below method to class-core.php will sort out this warning.
    public function load_textdomain() {
    load_plugin_textdomain( 'math-captcha', false, MATH_CAPTCHA_REL_PATH . 'languages/' );
    }
    // So please, move above method to class-core.php "plugins_loaded" hook and remove from wp-math-captcha.php

You must be logged in to reply to this review.