Support » Plugin: jQuery Smooth Scroll » Notices – wp_register_script and wp_register_style called incorrectly

  • This plugin is the best I’ve found so far to do what it does. But I tend to develop custom themes with WP_DEBUG turned on, and this plugin is causing the following notices to be thrown:

    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks.

    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks.

    I don’t quite grasp the way the author has registered and enqueued styles and scripts in this plugin, or I’d fix it myself. It’s probably an easy fix for the author. I don’t like to use plugins that throw notices or errors, but I haven’t found a better alternative and this is a bit more than I want to build from scratch.

    Any guess when you might have a chance to fix this?

    Thanks again for this great plugin!

    http://wordpress.org/extend/plugins/jquery-smooth-scroll/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notices – wp_register_script and wp_register_style called incorrectly’ is closed to new replies.