mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Have get_search_query() escape by default, like it's echoing counterpart the_search_query(). see #12780
git-svn-id: https://develop.svn.wordpress.org/trunk@13978 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -686,7 +686,7 @@ function get_search_link( $query = '' ) {
|
||||
global $wp_rewrite;
|
||||
|
||||
if ( empty($query) )
|
||||
$search = get_search_query();
|
||||
$search = get_search_query( false );
|
||||
else
|
||||
$search = stripslashes($query);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user