Skip to:
Content

BuddyPress.org

Ticket #7144: 7144.patch

File 7144.patch, 724 bytes (added by rekmla, 4 years ago)
  • src/bp-groups/classes/class-bp-groups-group.php

    diff --git src/bp-groups/classes/class-bp-groups-group.php src/bp-groups/classes/class-bp-groups-group.php
    index 27b68ae..1acac65 100644
    class BP_Groups_Group { 
    16441644
    16451645                $sql_clauses = $tax_query->get_sql( 'g', 'id' );
    16461646
    1647                 if ( $switched ) {
    1648                         restore_current_blog();
    1649                 }
    1650 
    16511647                $clause = '';
    16521648
    16531649                // The no_results clauses are the same between IN and NOT IN.
    class BP_Groups_Group { 
    16631659                        $clause = " AND g.id IN ( SELECT object_id FROM $wpdb->term_relationships WHERE {$matches[0]} )";
    16641660                }
    16651661
     1662                if ( $switched ) {
     1663                        restore_current_blog();
     1664                }
     1665
    16661666                return $clause;
    16671667        }
    16681668}