Title: [Plugin: WP125] scripts are incorrectly enqueued
Last modified: August 20, 2016

---

# [Plugin: WP125] scripts are incorrectly enqueued

 *  [Paul de Wouters](https://wordpress.org/support/users/pauldewouters/)
 * (@pauldewouters)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp125-scripts-are-incorrectly-enqueued/)
 * Hi
 * you should use the wp_enqueue_scripts hook to register your javascripts and stylesheets.
 * [http://wordpress.org/extend/plugins/wp125/](http://wordpress.org/extend/plugins/wp125/)
 * also:
    register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget()
   instead.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp125-scripts-are-incorrectly-enqueued/#post-2531101)
 * 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');
       		wp_enqueue_style('wp125style');
       	}
       }
       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.
 *  Thread Starter [Paul de Wouters](https://wordpress.org/support/users/pauldewouters/)
 * (@pauldewouters)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp125-scripts-are-incorrectly-enqueued/#post-2531102)
 * 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](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp125-scripts-are-incorrectly-enqueued/#post-2531103)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp125.svg)
 * [WP125](https://wordpress.org/plugins/wp125/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp125/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp125/)
 * [Active Topics](https://wordpress.org/support/plugin/wp125/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp125/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp125/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp125-scripts-are-incorrectly-enqueued/#post-2531103)
 * Status: not resolved