[wp-trac] [WordPress Trac] #20845: wp_set_current_user( null, "name") does not work when $current_user is already 0

WordPress Trac noreply at wordpress.org
Mon Oct 7 15:26:29 UTC 2013


#20845: wp_set_current_user( null, "name") does not work when $current_user is
already 0
--------------------------+------------------------------
 Reporter:  bobbingwide   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  3.3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by barrykooij):

 I agree on the importance of the difference between 0 and null, I've added
 a patch with the strict check.

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


More information about the wp-trac mailing list