[wp-trac] [WordPress Trac] #9309: Notice: Undefined variable: user in /wp-admin/includes/user.php on line 397

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 10 17:19:43 GMT 2009


#9309: Notice: Undefined variable: user in /wp-admin/includes/user.php on line 397
----------------------------+-----------------------------------------------
 Reporter:  mark8barnes     |       Owner:  anonymous               
     Type:  defect (bug)    |      Status:  new                     
 Priority:  normal          |   Milestone:  2.7.2                   
Component:  Administration  |     Version:  2.7.1                   
 Severity:  minor           |    Keywords:  has-patch, needs-testing
----------------------------+-----------------------------------------------
 if WP_DEBUG is on (and therefore E_NOTICE is also on), you get the above
 error when confirming the deletion of a user.

 I presume the error is caused because of a missing
 {{{
 $user = new WP_User($id);
 }}}
 at the beginning of the function

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9309>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list