Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jun 9, 2022
1 parent e32cf4d commit 7a8c3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Feature/Facets/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function render( $args, $instance ) {
if ( is_tax() ) {
$post_type = get_taxonomy( get_queried_object()->taxonomy )->object_type;
} else {
$post_type = $wp_query->get( 'post_type' ) ?: 'post';
$post_type = $wp_query->get( 'post_type' ) ? $wp_query->get( 'post_type' ) : 'post';
}

if ( ! is_object_in_taxonomy( $post_type, $taxonomy ) ) {
Expand Down

0 comments on commit 7a8c3d0

Please sign in to comment.