Skip to content

Commit

Permalink
Fix merging tags into a new tag that doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismeller committed Nov 11, 2012
1 parent 881b43b commit d7dcfec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/vocabulary.php
Expand Up @@ -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;
}

Expand Down

0 comments on commit d7dcfec

Please sign in to comment.