WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jaime Martinez
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/jetpack-only-for-admins/

  2. kitchin
    Member
    Posted 7 months 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

About this Topic