WordPress.org

Make WordPress Core

Changeset 20532


Ignore:
Timestamp:
04/19/12 11:51:27 (3 years ago)
Author:
duck_
Message:

Don't deprecate cleaning the user cache by ID. See #20460.

File:
1 edited

Legend:

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

    r20522 r20532  
    11441144 * @since 3.0.0 
    11451145 * 
    1146  * @param WP_User $user User object to be cleaned from the cache 
     1146 * @param WP_User|int $user User object or ID to be cleaned from the cache 
    11471147 */ 
    11481148function clean_user_cache( $user ) { 
    1149     if ( is_numeric( $user ) ) { 
    1150         _deprecated_argument( __FUNCTION__, '3.4', 'Pass the full user object instead of the ID.' ); 
     1149    if ( is_numeric( $user ) ) 
    11511150        $user = new WP_User( $user ); 
    1152     } 
    11531151 
    11541152    if ( ! $user->exists() ) 
Note: See TracChangeset for help on using the changeset viewer.