Support » Plugin: WP MediaTagger » wp_register_script was called incorrectly in mediatagger.php line 80

  • Line 80 of mediatagger.php reads:

    wp_register_script($javascript_filename, self::$PLUGIN_DIR_URL . $javascript_filename, false, self::$PLUGIN_VERSION);

    However this is in class wp_mediatagger::__construct which is instanced from the same script on line 3016:

    $wp_mediatagger = new wp_mediatagger();

    So wp_register_script() is not being called correctly, after the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks! Thus, the script is not being registered and the notices are sent to the debug output.

    This should be in a method of the class, hooked to the appropriate action.

    https://wordpress.org/plugins/wp-mediatagger/

  • The topic ‘wp_register_script was called incorrectly in mediatagger.php line 80’ is closed to new replies.