Changeset 8024
- Timestamp:
- 03/03/2014 08:17:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-classes.php
r7993 r8024 450 450 451 451 // Relevant 452 'fields' => array( 'ID', 'user_ registered', 'user_login', 'user_nicename', 'display_name', 'user_email' ),452 'fields' => array( 'ID', 'user_login', 'user_pass', 'user_nicename', 'user_email', 'user_url', 'user_registered', 'user_activation_key', 'user_status', 'display_name', 'spam', 'deleted' ), 453 453 'include' => $this->user_ids, 454 454 … … 458 458 459 459 ), $this ) ); 460 461 // WP_User_Query doesn't cache the data it pulls from wp_users, 462 // and it does not give us a way to save queries by fetching 463 // only uncached users. However, BP does cache this data, so 464 // we set it here. 465 foreach ( $wp_user_query->results as $u ) { 466 wp_cache_set( 'bp_core_userdata_' . $u->ID, $u, 'bp' ); 467 } 460 468 461 469 // We calculate total_users using a standalone query, except
Note: See TracChangeset
for help on using the changeset viewer.