Skip to content

Commit

Permalink
FIx PHPCS error.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakePT committed Nov 9, 2022
1 parent e713c94 commit de7ca49
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions includes/classes/Feature/Comments/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,12 @@ public static function get_searchable_post_types() {
$searchable_post_types = array();

$post_types = Features::factory()->get_registered_feature( 'search' )->get_searchable_post_types();
$post_types = array_filter( $post_types, function( $post_type ) {
return post_type_supports( $post_type, 'comments' );
} );
$post_types = array_filter(
$post_types,
function( $post_type ) {
return post_type_supports( $post_type, 'comments' );
}
);

foreach ( $post_types as $post_type ) {
$post_type_object = get_post_type_object( $post_type );
Expand Down

0 comments on commit de7ca49

Please sign in to comment.