[wp-trac] [WordPress Trac] #14010: PHP Notice: Undefined index in /wp-admin/plugins.php on line 16

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 20 23:39:50 UTC 2010


#14010: PHP Notice: Undefined index in /wp-admin/plugins.php on line 16
----------------------------+-----------------------------------------------
 Reporter:  jorbin          |       Owner:  nacin    
     Type:  defect (bug)    |      Status:  accepted 
 Priority:  normal          |   Milestone:  3.0.1    
Component:  Administration  |     Version:  3.0      
 Severity:  trivial         |    Keywords:  has-patch
----------------------------+-----------------------------------------------
Changes (by nacin):

  * owner:  => nacin
  * status:  new => accepted
  * milestone:  Unassigned => 3.0.1


Comment:

 Closed #14012 as a duplicate.

 The empty() check is all we need. Also, it looks like the branching here
 can be approved, by wrapping both the wp_die and add_action in a single
 empty() check, inside which we check for is_super_admin().

 Trivial, but marking for 3.0.1, this came out of the last commit of 3.0 if
 I remember correctly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14010#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list