[buddypress-trac] [BuddyPress Trac] #5696: Use get_user_by() for bp_core_get_userid_from_nicename()

buddypress-trac noreply at wordpress.org
Sun Jun 15 20:07:23 UTC 2014


#5696: Use get_user_by() for bp_core_get_userid_from_nicename()
------------------------------+---------------------------
 Reporter:  r-a-y             |       Owner:  boonebgorges
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  2.1
Component:  Members           |     Version:  1.5.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------------
Changes (by r-a-y):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8532"]:
 {{{
 #!CommitTicketReference repository="" revision="8532"
 Use `get_user_by()` for `bp_core_get_userid_from_nicename()` and
 `bp_core_get_userid()`

 Previously, these functions used direct DB queries to grab the user ID
 when
 a `user_nicename` or `user_login` was passed.

 This commit switches these direct DB queries to use `get_user_by()`, which
 caches the query when a persistent object cache is enabled.

 Fixes #5696.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5696#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list