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

WordPress Trac noreply at wordpress.org
Mon Sep 23 19:16:08 UTC 2013

#15508: Use !is_user_logged_in instead of !$user->ID
 Reporter:  Eteq                   |       Owner:
     Type:  enhancement            |      Status:  closed
 Priority:  normal                 |   Milestone:  3.7
Component:  Comments               |     Version:  3.0.1
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch 2nd-opinion  |
Changes (by ocean90):

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


 There is no difference between `$user->exists()` and
 `is_user_logged_in()` for `wp-comments-post.php`. If you overwrite
 `is_user_logged_in()` you probably overwrite `wp_get_current_user()` too,
 so no need to change something here.

 Calling as fixed.

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

More information about the wp-trac mailing list