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

WordPress Trac noreply at wordpress.org
Sat Sep 21 14:31:40 UTC 2013


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

 * keywords:  has-patch needs-testing => has-patch 2nd-opinion


Comment:

 [attachment:15508.patch​] includes the changes from
 [attachment:15508.diff​] for wp-includes/comment-template.php.

 Not sure if we have to change wp-comments-post.php too, since we already
 have `$user->exists()` here. I have included it in
 [attachment:15508.2.patch​].

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


More information about the wp-trac mailing list