Make WordPress Core


Ignore:
Timestamp:
12/01/2010 10:12:09 PM (14 years ago)
Author:
ryan
Message:

Deprecate and ignore the refresh arg. fixes #15605

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r15746 r16673  
    433433add_action( 'wpmueditblogaction', 'upload_space_setting' );
    434434
    435 function update_user_status( $id, $pref, $value, $refresh = 1 ) {
     435function update_user_status( $id, $pref, $value, $deprecated = null ) {
    436436    global $wpdb;
    437437
     438    if ( null !== $deprecated  )
     439        _deprecated_argument( __FUNCTION__, '3.1.0' );
     440
    438441    $wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) );
    439442
    440     if ( $refresh == 1 )
    441         refresh_user_details( $id );
     443    clean_user_cache( $id );
    442444
    443445    if ( $pref == 'spam' ) {
Note: See TracChangeset for help on using the changeset viewer.