[wp-trac] [WordPress Trac] #31106: Introduce nicename_exists

WordPress Trac noreply at wordpress.org
Fri Jan 23 19:55:50 UTC 2015


#31106: Introduce nicename_exists
----------------------------+------------------------------
 Reporter:  voldemortensen  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Users           |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+------------------------------

Comment (by voldemortensen):

 Additionally, the more I think about it the more it semantically makes
 sense.
 get_user_by seems to be used with the expectation that a user will be
 returned and error if the user doesn't exist. *_exists seem to be used
 when we aren't sure or are hoping that a user doesn't exist.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31106#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list