[wp-trac] [WordPress Trac] #15178: Empty endpoint same as missing endpoint: empty vs isset query_var.

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 7 06:12:19 UTC 2011


#15178: Empty endpoint same as missing endpoint: empty vs isset query_var.
--------------------------+-----------------------
 Reporter:  5ubliminal    |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------
Changes (by johnbillion):

 * keywords:  reporter-feedback =>
 * status:  closed => reopened
 * resolution:  duplicate =>


Comment:

 This wasn't in fact fixed in #10710. An endpoint without a value is still
 indistinguishable from no endpoint. All #10710 done was to explicitly set
 all query vars to an empty string.

 `example.com/test/` and `example.com/` both give us query_vars[test]=!''
 (an empty string), making them indistinguishable.

 Additionally, the inline doc for `add_rewrite_endpoint()` is misleading as
 it states:

 > Add an endpoint, like /trackback/.

 which suggests endpoints without values are possible.

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


More information about the wp-trac mailing list