• It appears that the load_resources() function in class.akismet-admin.php is throwing a PHP Notice:

    PHP Notice:  wp_enqueue_script was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks.
    PHP Notice:  wp_enqueue_style was called <strong>incorrectly</strong>. Scripts and styles should not be registered or enqueued until the <code>wp_enqueue_scripts</code>, <code>admin_enqueue_scripts</code>, or <code>login_enqueue_scripts</code> hooks.

    https://wordpress.org/plugins/akismet/

Viewing 1 replies (of 1 total)
  • Plugin Author Christopher Finke

    (@cfinke)

    Which version of WordPress are you running? load_resources() is hooked to admin_enqueue_scripts, so it seems strange that WP would complain about admin_enqueue_scripts not having run yet.

Viewing 1 replies (of 1 total)

The topic ‘Throwing PHP Notice’ is closed to new replies.