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
This commit is contained in:
Jon Cave 2012-04-19 11:51:27 +00:00
parent 882eaba136
commit 2cc545029f
1 changed files with 2 additions and 4 deletions

View File

@ -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;