Skip to content

Commit

Permalink
PHP 5.6: Remove null coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Aug 11, 2021
1 parent 6bd7938 commit 2b055c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Indexable/Comment/QueryIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function maybe_filter_query( $results, WP_Comment_Query $query ) {
* @return array
*/
protected function format_hits_as_comments( $comments, $new_comments, $query_vars ) {
$hierarchical = $query_vars['hierarchical'] ?? false;
$hierarchical = isset( $query_vars['hierarchical'] ) ? $query_vars['hierarchical'] : false;

foreach ( $comments as $comment_array ) {
$comment = new \WP_Comment( (object) $comment_array );
Expand Down

0 comments on commit 2b055c5

Please sign in to comment.