Skip to content

Commit 324865e

Browse files
committed
fix (Term): wrong operator for get_terms_name()
1 parent 1139e53 commit 324865e

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)