Make WordPress Core

Ticket #15559: 15559.diff

File 15559.diff, 814 bytes (added by mdawaffe, 14 years ago)
  • deprecated.php

     
    22962296        else
    22972297                $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
    22982298
    2299         wp_cache_delete($user_id, 'users');
     2299        clean_user_cache( $user_id );
     2300        wp_cache_delete( $user_id, 'user_meta' );
    23002301
    23012302        if ( $cur && $cur->umeta_id )
    23022303                do_action( 'deleted_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );
     
    24032404        else
    24042405                return false;
    24052406
    2406         wp_cache_delete($user_id, 'users');
     2407        clean_user_cache( $user_id );
     2408        wp_cache_delete( $user_id, 'user_meta' );
    24072409
    24082410        if ( !$cur )
    24092411                do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value );