Skip to content

Commit

Permalink
Adjust Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Nov 24, 2022
1 parent 7ac56ee commit 593b022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Feature/Search/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ public function enqueue_block_editor_assets() {
*/
public function exclude_posts_from_search( $query ) {

if ( ! $query->is_search() || $query->is_admin ) {
if ( is_admin() || ! $query->is_search() ) {
return;
}

Expand Down

0 comments on commit 593b022

Please sign in to comment.