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

WordPress Trac noreply at wordpress.org
Thu May 29 05:47:37 UTC 2014


#11330: Empty search takes you to homepage instead of empty search page
------------------------------+-----------------------------
 Reporter:  jacobfogg         |       Owner:  wonderboymusic
     Type:  defect (bug)      |      Status:  closed
 Priority:  low               |   Milestone:  4.0
Component:  Query             |     Version:  2.8.5
 Severity:  minor             |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28612"]:
 {{{
 #!CommitTicketReference repository="" revision="28612"
 When parsing the main query, if `s` is set to empty: `?s=` and
 `$this->is_main_query() && array_key_exists( 's', $this->query )` - kill
 the query instead of loading the homepage. This will load the search page
 with no results.

 Fixes #11330.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/11330#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list