[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
Thu Apr 9 22:14:03 UTC 2015


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

Comment (by johnbillion):

 It would make more sense to use the existing `$query_var` parameter for
 this, rather than introducing a fourth parameter. It could accept boolean
 false to disable the query var. With [attachment:25143.3.patch],
 registering an endpoint with no query var requires that you pass in a
 useless value to the `$query_var` parameter.

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


More information about the wp-trac mailing list