Skip to:
Content

BuddyPress.org

Changeset 10871


Ignore:
Timestamp:
06/02/2016 04:50:13 PM (3 years ago)
Author:
boonebgorges
Message:

Fix 'switched' logic in taxonomy functions.

Props Offereins.
See #7077.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-taxonomy.php

    r10846 r10871  
    9393    $retval = wp_set_object_terms( $object_id, $terms, $taxonomy, $append );
    9494
    95     if ( ! $switched ) {
     95    if ( $switched ) {
    9696        restore_current_blog();
    9797    }
     
    132132        $retval     = array_merge( $retval, $site_terms );
    133133
    134         if ( ! $switched ) {
     134        if ( $switched ) {
    135135            restore_current_blog();
    136136        }
     
    164164    $retval = wp_remove_object_terms( $object_id, $terms, $taxonomy );
    165165
    166     if ( ! $switched ) {
     166    if ( $switched ) {
    167167        restore_current_blog();
    168168    }
Note: See TracChangeset for help on using the changeset viewer.