Widget admin page: "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." #320
When trying to use the widget admin page with WP Typography plugin enabled, the following is reported:
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.
Steps to Reproduce (for bugs)
Install WordPress core.
Install and enable WP Typography plugin.
Visit the widget admin page.
Expected Behavior
No PHP Notices.
Current Behavior
PHP Notice about this.
Possible Solution
Changing the way WP Typography enqueues the styles.
Issue Overview
When trying to use the widget admin page with WP Typography plugin enabled, the following is reported:
Steps to Reproduce (for bugs)
Expected Behavior
No PHP Notices.
Current Behavior
PHP Notice about this.
Possible Solution
Changing the way WP Typography enqueues the styles.