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

WordPress Trac noreply at wordpress.org
Fri Jan 23 18:08:46 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):

 I think
 `if(!nicename_exists( 'stuff' ) ) { things(); }`
 looks cleaner and more readable than
 `if(!get_user_by( 'slug', 'stuff' ) ) { things(); }`

 Which raises another issue of 'slug' being slightly confusing. It would
 make more sense if `get_user_by( 'nicename', 'stuff' )` available.

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


More information about the wp-trac mailing list