[wp-trac] [WordPress Trac] #21120: Optimize get_user_by()
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 31 17:45:40 UTC 2012
#21120: Optimize get_user_by()
------------------------------------+------------------------------
Reporter: kurtpayne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Performance | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------------------
Comment (by nacin):
In [21376]:
{{{
#!CommitTicketReference repository="" revision="21376"
Optimize get_user_by( 'id', $id ) to return wp_get_current_user() when the
current user ID is requested.
Provides for a major performance improvement by preventing repeated
instantiations of WP_User in the capabilities API.
see #21120.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21120#comment:30>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list