[wp-trac] [WordPress Trac] #15178: Empty endpoint same as missing endpoint: empty vs isset query_var.
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 21 02:42:16 UTC 2010
#15178: Empty endpoint same as missing endpoint: empty vs isset query_var.
--------------------------+-------------------------------------------------
Reporter: 5ubliminal | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 3.0.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
http://wordpress.org/support/topic/custom-rewrite-approach-with-
add_rewrite_endpoint
If I have a /test/ endpoint, it will not show in query_vars unless it has
a value. So /test/1 will have query_vars[test]=1 but /test/ will NOT have
query_vars[test]=null in query_vars. Empty endpoints should be present
with null value in query_vars so they can be tested with isset() for
value-less existence.
Hope it make sense. Tested in 3.0.1 and this problem exists.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15178>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list