Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/28/2016 07:52:49 PM (10 years ago)
Author:
r-a-y
Message:

Taxonomy: Fix usage of restore_current_blog() when using bp_get_taxonomy_term_site_id().

See #7077 where we introduced bp_get_taxonomy_term_site_id().

Props remkla.

Fixes #7142, #7144 (2.6-branch).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/bp-groups/classes/class-bp-groups-group.php

    r10872 r10912  
    16451645                $sql_clauses = $tax_query->get_sql( 'g', 'id' );
    16461646
    1647                 if ( $switched ) {
    1648                         restore_current_blog();
    1649                 }
    1650 
    16511647                $clause = '';
    16521648
     
    16641660                }
    16651661
     1662                if ( $switched ) {
     1663                        restore_current_blog();
     1664                }
     1665
    16661666                return $clause;
    16671667        }
Note: See TracChangeset for help on using the changeset viewer.