Jetpack Only for Admins
Warning while using WP-CLI (2 posts)

  1. Jaime Martinez
    Posted 3 years ago #

    The remove page gets called on admin_init while it should be call on admin_menu, right?

    When I hook it there the warning
    PHP Warning: Invalid argument supplied for foreach() in /Users/jaime/projects/new-scientist/httpdocs/wp-admin/includes/plugin.php on line 1290 goes away.


  2. kitchin
    Posted 2 years ago #

    Agree, it also can break AJAX. Error reporting seems less controlled by WP_DEBUG in some circumstances, like AJAX. See also: http://wordpress.org/support/topic/conflict-with-ajax-due-to-debug-warning

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack Only for Admins
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic