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

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 10 00:10:37 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 scribu):

 The length of the method has nothing to do with it, though it will
 probably grow, since refactoring for it's own sake is frowned upon, since
 we don't have unit tests to ensure that everything still works afterwards.

 Anyway, the issue is that we ignore all empty query vars, except for 's',
 but I guess that's ok, since it's the only one that does a search, rather
 than an exact match. Well, we also have 'sentence', actually.

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


More information about the wp-trac mailing list