[wp-trac] [WordPress Trac] #21120: Optimize get_user_by()

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 31 17:39:16 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 [21375]:
 {{{
 #!CommitTicketReference repository="" revision="21375"
 Don't call get_userdata() every time for the current user in
 map_meta_cap()'s read_post, edit_post, and delete_post branches. see
 #21120.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21120#comment:29>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list