Opened 14 years ago
Closed 14 years ago
#18372 closed defect (bug) (duplicate)
Undefined user object in pluggable.php throws php notices when debugging is turned on...
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.2 |
Component: | Plugins | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Looks like
isset()
will always return true. Wouldn'tempty()
be more appropriate?