Support » Plugins and Hacks » [Plugin: WP125] scripts are incorrectly enqueued

[Plugin: WP125] scripts are incorrectly enqueued

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author redwallhp


    Maybe I’m missing something, but WP125 1.4.1 is using the wp_enqueue_scripts hook to register stylesheets.

    function wp125_stylesheet() {
    	if (get_option("wp125_disable_default_style")=='') {
    		wp_register_style('wp125style', wp125_get_plugin_dir('url').'/wp125.css');
    add_action('wp_enqueue_scripts', 'wp125_stylesheet');

    When I wrote the plugin initially, I don’t think that hook had existed yet. If I remember correctly, I finally got around to updating it around the time WP 3.3 came out.

    The widgets are next on my list.

    sorry about that.
    Actually I meant in the file adminmenus.php.
    I suggest the using admin_enqueue_scripts hook

    I suggest using the plugin Log deprecated notices to check your code, it’s pretty useful 🙂

    Plugin Author redwallhp


    Ah, I see now. I don’t know how I missed that before.

    And I’ll have to take a look at that plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP125] scripts are incorrectly enqueued’ is closed to new replies.