[wp-trac] [WordPress Trac] #18372: Undefined user object in pluggable.php throws php notices when debugging is turned on...

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 10 19:28:52 UTC 2011


#18372: Undefined user object in pluggable.php throws php notices when debugging is
turned on...
--------------------------+-----------------------------
 Reporter:  MarcusPope    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:  3.2
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 wp-includes\pluggable.php lines 1337 & 786 attempt to access attributes on
 the $user object.  When the $user object does not exist - as in xmlrpc
 requests - this throws a notice. When wordpress debug flag is on this
 appends warnings to output expected to be parseable by the consumer.

 This may be a problem more properly fixed in the returned object of
 wp_get_current_user - some form of a generic stubbed user.

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


More information about the wp-trac mailing list