Changeset 9663 for branches/2.2/src/bp-core/bp-core-classes.php
- Timestamp:
- 03/30/2015 06:44:55 PM (11 years ago)
- File:
-
- 1 edited
-
branches/2.2/src/bp-core/bp-core-classes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/src/bp-core/bp-core-classes.php
r9404 r9663 436 436 restore_current_blog(); 437 437 438 439 440 438 // Grab the first term_relationships clause and convert to a subquery. 441 439 if ( preg_match( '/' . $wpdb->term_relationships . '\.term_taxonomy_id IN \([0-9, ]+\)/', $member_type_sql_clauses['where'], $matches ) ) { 442 440 $sql['where']['member_type'] = "u.{$this->uid_name} IN ( SELECT object_id FROM $wpdb->term_relationships WHERE {$matches[0]} )"; 441 } elseif ( false !== strpos( $member_type_sql_clauses['where'], '0 = 1' ) ) { 442 $sql['where']['member_type'] = $this->no_results['where']; 443 443 } 444 444 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)