Skip to content

Commit 1d7b57d

Browse files
committed
If a term doesn't have a transid, allow it to fall through so one is created rather than throwing an exception.
1 parent 39836c6 commit 1d7b57d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

class-taxonomy.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,7 @@ public function get_terms( $terms ) {
354354
continue;
355355
}
356356
if ( isset( $this->taxonomies[ $term->taxonomy ] ) ) {
357-
if ( ! $this->get_transid( $term->term_id ) ) {
358-
throw new exception( "ERROR: Translated term ID $term->term_id does not have a transid" );
359-
} else {
357+
if ( $this->get_transid( $term->term_id ) ) {
360358
continue;
361359
}
362360
}

0 commit comments

Comments
 (0)