Skip to content

Commit c7edfd8

Browse files
committed
wp_unslash function
1 parent 5846714 commit c7edfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* search results page
1111
*/
1212

13-
if (empty( $_REQUEST['search']) || ! wp_verify_nonce( sanitize_text_field($_REQUEST['search']), 'search' ) ) {
13+
if (empty( $_REQUEST['search']) || ! wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['search'])), 'search' )) {
1414
// 404 ?
1515
get_header();
1616
echo '<div class="container post"> ';

0 commit comments

Comments
 (0)