#10710 closed defect (bug) (fixed)
parse_request() of WP should set empty query variables when appropriate
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Permalinks | Keywords: | has-patch early |
Focuses: | Cc: |
Description
As scribu points out, if a custom query variable is empty it remains unset.
Patch changes the empty check on permalink variables to an isset check.
This shouldn't affect core query variables, because it seems as though they're eventually all set even when empty.
Attachments (1)
Change History (14)
#7
@
15 years ago
Another reason for this is that when endpoint rewrite rules are generated, they explicitly allow for empty endpoint values (see line 1289ff of wp-includes/rewrite.php
).
So WP rewrite is writing checks that WP query can't cash.
#9
follow-up:
↓ 10
@
15 years ago
PS: I have no idea why elseif ( isset( $GLOBALS[$wpvar] ) )
is there.
Note: See
TracTickets for help on using
tickets.
Related #11330