Changeset 9661 for trunk/src/bp-core/classes/class-bp-user-query.php
- Timestamp:
- 03/30/2015 06:41:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-user-query.php
r9586 r9661 446 446 447 447 // Switch to the root blog, where member type taxonomies live. 448 switch_to_blog( bp_get_root_blog_id() ); 448 $switched = false; 449 if ( ! bp_is_root_blog() ) { 450 switch_to_blog( bp_get_root_blog_id() ); 451 $switched = true; 452 } 449 453 450 454 $member_type_sql_clauses = $member_type_tq->get_sql( 'u', $this->uid_name ); 451 restore_current_blog(); 452 453 455 456 if ( $switched ) { 457 restore_current_blog(); 458 } 454 459 455 460 // Grab the first term_relationships clause and convert to a subquery.
Note: See TracChangeset
for help on using the changeset viewer.