Make WordPress Core


Ignore:
Timestamp:
04/17/2009 09:25:11 PM (15 years ago)
Author:
ryan
Message:

Cache user lookups made by nicename. Add get_user_by(). fixes #4170

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r10960 r10992  
    598598    wp_cache_add($user->user_login, $user->ID, 'userlogins');
    599599    wp_cache_add($user->user_email, $user->ID, 'useremail');
     600    wp_cache_add($user->user_nicename, $user->ID, 'userslugs');
    600601}
    601602
Note: See TracChangeset for help on using the changeset viewer.