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

Notices with debug enabled #122

Open
andergmartins opened this issue May 10, 2018 · 2 comments
Open

Notices with debug enabled #122

andergmartins opened this issue May 10, 2018 · 2 comments

Comments

@andergmartins
Copy link
Contributor

In wp-config.php from the WordPress site, change WP_DEBUG to "true":

define('WP_DEBUG', true);

By having EmbedPress activated, the below notices come up:

{quote}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 login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /wp-includes/functions.php on line 4136

Notice: wp_enqueue_style 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 /wp-includes/functions.php on line 4136

Notice: add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead. in /wp-includes/functions.php on line 3828{quote}

@andergmartins
Copy link
Contributor Author

➤ Valentin Garcia commented:

[~denison] tested beta1, and the notices are gone.
Great job, man! Thanks.

@andergmartins
Copy link
Contributor Author

➤ Denison Martins commented:

Awesome, thanks!

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

No branches or pull requests

2 participants