[wp-trac] [WordPress Trac] #31106: Introduce nicename_exists
WordPress Trac
noreply at wordpress.org
Fri Jan 23 18:04:03 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 SergeyBiryukov):
Replying to [comment:1 nacin]:
> I'd rather encourage usage of get_user_by(), which is a bit newer than
the other _exists() functions. Thoughts?
I agree. Getting a user by slug isn't as common as by ID or email (we only
do that [source:tags/4.1/src/wp-includes/query.php#L2798 once] in core),
so this seems like unnecessary abstraction to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31106#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list