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-core/classes/class-bp-user-query.php

    r10872 r10912  
    798798                $sql_clauses = $tax_query->get_sql( 'u', $this->uid_name );
    799799
    800                 if ( $switched ) {
    801                         restore_current_blog();
    802                 }
    803 
    804800                $clause = '';
    805801
    … …  
    817813                }
    818814
     815                if ( $switched ) {
     816                        restore_current_blog();
     817                }
     818
    819819                return $clause;
    820820        }
Note: See TracChangeset for help on using the changeset viewer.