diff --git a/classes/vocabulary.php b/classes/vocabulary.php index 5347bbca0..f8d83c109 100644 --- a/classes/vocabulary.php +++ b/classes/vocabulary.php @@ -790,8 +790,9 @@ public function merge( $master, $tags, $object_type = 'post' ) if ( !isset( $master_term->term ) ) { // it didn't exist, so we assume it's tag text and create it - $ok = $this->add_term( $master ); - if( !$ok ) { + $master_term = $this->add_term( $master ); + + if( !$master_term ) { return; }