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
This commit is contained in:
duck_ 2012-04-19 11:51:27 +00:00
parent f8201ed9e2
commit 9694d46b27
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;