﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
13961,search query_vars bug when using search base,shidouhikari,markjaquith,"Use this debug code anywhere in a theme file:

{{{
global $wp_query;
$search_string = $wp_query->query_vars['s'];
echo ""<p>$search_string</p>"";
}}}

Then use a search form to do a normal search using more than a keyword, for exemple ""search string"", so that your testing site has posts that match it. It will result in something like http://domain.com/?s=search+string&submit=Go, debug will print ""search string"" and index.php will list all found posts as expected.

Now use search base version: http://domain.com/search/search+string ... debug prints ""search+string"" and since there's no post with ""search-string"", it is says there's no post matching.

I was unable to find where '+' should be but isn't replaced to ' ', and it's even more strange that only when search base is used that this bug happens.",defect (bug),closed,normal,3.5,Query,3.0,normal,fixed,has-patch 3.5-early,bennettmcelwee sirzooro
