[wp-trac] [WordPress Trac] #15508: Use !is_user_logged_in instead of !$user->ID

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 21 03:26:57 UTC 2010


#15508: Use !is_user_logged_in instead of !$user->ID
-------------------------------------------+-----------------------------
 Reporter:  Eteq                           |       Owner:
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  Future Release
Component:  General                        |     Version:  3.0.1
 Severity:  major                          |  Resolution:
 Keywords:  needs-patch reporter-feedback  |
-------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-patch => needs-patch reporter-feedback


Comment:

 Any examples? I've found only one instance in `wp-
 includes/capabilities.php`:
 {{{
 if ( ! $user || ! $user->ID )
         return false;
 }}}

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


More information about the wp-trac mailing list