[wp-trac] [WordPress Trac] #11330: Empty search takes you to homepage instead of empty search page

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 9 22:37:21 UTC 2012


#11330: Empty search takes you to homepage instead of empty search page
--------------------------+-----------------------------
 Reporter:  jacobfogg     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  Future Release
Component:  Query         |     Version:  2.8.5
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------

Comment (by SergeyBiryukov):

 > 1) WP_Query::is_search is true if 's' query var exists (isset)

 This doesn't work as intended. Query vars (including `'s'`) are always set
 in `fill_query_vars()`: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.2/wp-
 includes/query.php#L1356

 With the patch applied, home page is displayed in `search.php` template
 and shows "Nothing Found".

 Related: #18485

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11330#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list