• Resolved antonio-piha

    (@antonio-piha)


    When installed and with wp-debug set to true the message appears:

    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts …

    The problem is in your settings.php in 5th line:
    wp_enqueue_script(‘jquery’);

    Should be called with a hook ‘wp_enqueue_scripts’ and not directly.

    https://ww.wp.xz.cn/plugins/responsive-admin-maintenance-pro/

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

The topic ‘Notice: wp_enqueue_script was called incorrectly’ is closed to new replies.