Skip to content

Commit

Permalink
Merge pull request #3093 from 10up/burhan/remove-unnecessary-check
Browse files Browse the repository at this point in the history
Remove unnecessary check from allow_excerpt_html
  • Loading branch information
felipeelia authored Nov 1, 2022
2 parents cad4cbf + 80fb8df commit 458dd24
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions includes/classes/Feature/Search/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,6 @@ public function allow_excerpt_html() {
return;
}

if ( empty( $_GET['s'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
return;
}

$settings = $this->get_settings();

if ( ! $settings ) {
Expand Down

0 comments on commit 458dd24

Please sign in to comment.