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

WordPress Trac noreply at wordpress.org
Mon Jun 23 13:42:36 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 SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 To summarize the changesets here, we've changed this:
 {{{
 if ( ! empty( $qv['s'] ) ) {
         $this->is_search = true;
 }
 }}}
 to this:
 {{{
 if ( isset( $this->query['s'] ) ) {
         $this->is_search = true;
 }
 }}}
 The main point of this ticket (loading search template for an empty search
 instead of front page) is resolved.

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


More information about the wp-trac mailing list