[wp-trac] [WordPress Trac] #18458: calling is_user_logged_in() when logged-out throws PHP notice

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 17 08:51:38 UTC 2011


#18458: calling is_user_logged_in() when logged-out throws PHP notice
------------------------------+---------------------
 Reporter:  wonderboymusic    |       Owner:  dd32
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.3
Component:  Warnings/Notices  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |
------------------------------+---------------------
Changes (by dd32):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [18558]:
 {{{
 #!CommitTicketReference repository="" revision="18558"
 Harden up is_user_logged_in() against empty $current_user instances to
 prevent PHP Notices on XML-RPC requests. Fixes #18458
 }}}

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


More information about the wp-trac mailing list