Deprecate and ignore the refresh arg. fixes #15605

git-svn-id: http://svn.automattic.com/wordpress/trunk@16673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-12-01 22:12:09 +00:00
parent 92c2b40e0b
commit 0eeb985ef2
2 changed files with 17 additions and 12 deletions

View File

@@ -432,13 +432,15 @@ function upload_space_setting( $id ) {
}
add_action( 'wpmueditblogaction', 'upload_space_setting' );
function update_user_status( $id, $pref, $value, $refresh = 1 ) {
function update_user_status( $id, $pref, $value, $deprecated = null ) {
global $wpdb;
if ( null !== $deprecated )
_deprecated_argument( __FUNCTION__, '3.1.0' );
$wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );
if ( $refresh == 1 )
refresh_user_details( $id );
clean_user_cache( $id );
if ( $pref == 'spam' ) {
if ( $value == 1 )