Skip to content

Commit 629e758

Browse files
authored
Merge pull request #306 from BeAPI/fix/helper-term
fix (Term): wrong operator for get_terms_name()
2 parents 1139e53 + 324865e commit 629e758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Helpers/Formatting/Term.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
function get_terms_name( $post_id, string $taxonomy ): array {
1414
$terms = get_the_terms( $post_id, $taxonomy );
1515

16-
if ( false !== $terms || is_wp_error( $terms ) ) {
16+
if ( false === $terms || is_wp_error( $terms ) ) {
1717
return [];
1818
}
1919

0 commit comments

Comments
 (0)