Make WordPress Core


Ignore:
Timestamp:
08/24/2011 07:32:59 PM (10 years ago)
Author:
ryan
Message:

Introduce metadata_exists(), WP_User::get_data_by(), WP_User::get(), WP_User::has_prop(). Don't fill user objects with meta. Eliminate data duplication in cache and memory. Props scribu. see #15458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-users-list-table.php

    r18179 r18597  
    220220        if ( !( is_object( $user_object ) && is_a( $user_object, 'WP_User' ) ) )
    221221            $user_object = new WP_User( (int) $user_object );
    222         $user_object = sanitize_user_object( $user_object, 'display' );
     222        $user_object->filter = 'display';
    223223        $email = $user_object->user_email;
    224224
Note: See TracChangeset for help on using the changeset viewer.