WordPress.org

Ready to get started?Download WordPress

Forums

Smart YouTube PRO
[Resolved?] wp_register_script was called incorrectly (2 posts)

  1. robertmglynn
    Member
    Posted 2 years ago #

    In case you update and get the "wp_register_script was called incorrectly" error, comment out lines 98 & 99:

    //$script_path = $this->plugin_url . '/javascripts/jquery.colorbox-min.js';
    		//wp_register_script( 'colorbox', $script_path );

    and add

    add_action('wp_enqueue_script','load_scripts');

    at line 124 (or any line in the filters_and_hooks method).

    WordPress v.3.4.2
    Smart-YouTube PRO v.4.1.7

    http://wordpress.org/extend/plugins/smart-youtube/

  2. vadims00
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic