Urlencode the search query in get_search_feed_link() and get_search_comments_feed_link(), props tenpura, fixes #11153
git-svn-id: https://develop.svn.wordpress.org/trunk@12395 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
90b83e8f8a
commit
3447fc5210
@ -619,9 +619,9 @@ function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
|
||||
*/
|
||||
function get_search_feed_link($search_query = '', $feed = '') {
|
||||
if ( empty($search_query) )
|
||||
$search = esc_attr(get_search_query());
|
||||
$search = esc_attr( urlencode(get_search_query()) );
|
||||
else
|
||||
$search = esc_attr(stripslashes($search_query));
|
||||
$search = esc_attr( urlencode(stripslashes($search_query)) );
|
||||
|
||||
if ( empty($feed) )
|
||||
$feed = get_default_feed();
|
||||
@ -644,9 +644,9 @@ function get_search_feed_link($search_query = '', $feed = '') {
|
||||
*/
|
||||
function get_search_comments_feed_link($search_query = '', $feed = '') {
|
||||
if ( empty($search_query) )
|
||||
$search = esc_attr(get_search_query());
|
||||
$search = esc_attr( urlencode(get_search_query()) );
|
||||
else
|
||||
$search = esc_attr(stripslashes($search_query));
|
||||
$search = esc_attr( urlencode(stripslashes($search_query)) );
|
||||
|
||||
if ( empty($feed) )
|
||||
$feed = get_default_feed();
|
||||
|
Loading…
Reference in New Issue
Block a user