[wp-trac] [WordPress Trac] #25143: Appending registered query vars to home URL sets is_home to true when should be false

WordPress Trac noreply at wordpress.org
Fri Apr 24 16:37:14 UTC 2015


#25143: Appending registered query vars to home URL sets is_home to true when
should be false
-------------------------------------+---------------------------
 Reporter:  mordauk                  |       Owner:  boonebgorges
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.3
Component:  Query                    |     Version:  3.6
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"32293"]:
 {{{
 #!CommitTicketReference repository="" revision="32293"
 Allow rewrite endpoints to be registered without also registering query
 vars.

 Passing `false` to `add_rewrite_endpoint()` will now allow you to take
 advantage of the rewrite API without thereby modifying the way that WP
 sets up
 the main query from the request URI.

 This new functionality allows developers to work around certain edge-case
 bugs,
 such as when a proper endpoint request (such as `/test/1/`) would short-
 circuit `is_home()` calculation when a static front page is set.

 Props mordauk, boonebgorges.
 Fixes #25143.
 }}}

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


More information about the wp-trac mailing list