From 9694d46b27960a170b9eebd7089ef9a8db116b98 Mon Sep 17 00:00:00 2001 From: duck_ Date: Thu, 19 Apr 2012 11:51:27 +0000 Subject: [PATCH] Don't deprecate cleaning the user cache by ID. See #20460. git-svn-id: http://svn.automattic.com/wordpress/trunk@20532 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/user.php b/wp-includes/user.php index 2a1a29481..2b6947254 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -1143,13 +1143,11 @@ function update_user_caches($user) { * * @since 3.0.0 * - * @param WP_User $user User object to be cleaned from the cache + * @param WP_User|int $user User object or ID to be cleaned from the cache */ function clean_user_cache( $user ) { - if ( is_numeric( $user ) ) { - _deprecated_argument( __FUNCTION__, '3.4', 'Pass the full user object instead of the ID.' ); + if ( is_numeric( $user ) ) $user = new WP_User( $user ); - } if ( ! $user->exists() ) return;