[wp-trac] [WordPress Trac] #21120: Optimize get_user_by()
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 20 21:58:37 UTC 2012
#21120: Optimize get_user_by()
------------------------------------+------------------
Reporter: kurtpayne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Performance | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------
Comment (by nacin):
In [21563]:
{{{
#!CommitTicketReference repository="" revision="21563"
Move the optimization done to get_user_by() in [21376] higher up the
stack, into map_meta_cap() and is_super_admin().
This provides nearly the same benefits without possibly receiving a stale
object from get_userdata(),
which could affect authentication, and introduce side effects for plugins.
see #21120.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21120#comment:38>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list