Skip to content

Commit

Permalink
Force boolean return on display_as_links
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMKindred committed Sep 25, 2023
1 parent 8cd09f4 commit 62dd68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/plugins/core/src/Blocks/Terms_Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function get_the_terms(): array {
}

public function display_as_links(): bool {
return $this->has_links;
return (bool) $this->has_links;
}

}

0 comments on commit 62dd68f

Please sign in to comment.