Changeset 8949 for trunk/src/bp-groups/bp-groups-classes.php
- Timestamp:
- 08/20/2014 06:32:30 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-classes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-classes.php
r8934 r8949 892 892 893 893 if ( ! empty( $matches_a[1] ) && ! empty( $matches_b[1] ) ) { 894 $sql_array['join'] = implode( ',', $matches_a[1] ). ', '; 895 896 $sql_array['where'] = ''; 897 898 $meta_query_where_clauses = explode( "\n", $meta_sql['where'] ); 899 900 // Trim empties 901 $meta_query_where_clauses = array_values( array_filter( $meta_query_where_clauses ) ); 902 903 foreach( $matches_b[1] as $key => $group_id_clause ) { 904 $sql_array['where'] .= ' ' . preg_replace( '/^(AND\s+[\(\s]+)/', '$1' . $group_id_clause . ' AND ', ltrim( $meta_query_where_clauses[ $key ] ) ); 905 } 906 894 $sql_array['join'] = implode( ',', $matches_a[1] ) . ', '; 895 $sql_array['where'] = $meta_sql['where'] . ' AND ' . implode ( ' AND ', $matches_b[1] ); 907 896 } 908 897 }
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)