Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp_register_script causes a PHP Notice #361

Closed
anekola opened this issue Jun 6, 2020 · 1 comment · Fixed by #368
Closed

wp_register_script causes a PHP Notice #361

anekola opened this issue Jun 6, 2020 · 1 comment · Fixed by #368
Labels
Milestone

Comments

@anekola
Copy link

anekola commented Jun 6, 2020

I have no idea why I just started getting this, but I just updated this VIP Go repo in my local environment and I suddenly started getting two PHP notices. Turns out the notice came from these functions:

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 login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /srv/www/ona-journalists/public_html/wp-includes/functions.php on line 5167

@PypWalters
Copy link

Seeing the same issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants