From 2cc545029f549a6c8fa9b4dbf308e6c2a9e93a3f Mon Sep 17 00:00:00 2001 From: Jon Cave 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: https://develop.svn.wordpress.org/trunk@20532 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 2a1a294810..2b69472545 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;