[wp-hackers] Rewrite endpoints
if.website at gmail.com
Tue Sep 1 01:59:52 UTC 2009
On Mon, Aug 31, 2009 at 8:03 PM, scribu<scribu at gmail.com> wrote:
> On Tue, Sep 1, 2009 at 2:55 AM, Austin Matzko <if.website at gmail.com> wrote:
>> Perhaps, but the way it works currently is that you have to explicitly
>> declare it as a query variable, by calling
> That line is already included in $wp_rewrite->add_endpoint().
You're right. My mistake.
> And foobar shows up in [query_vars] when it's not empty.
The problem lies in the $wp->parse_request() method, which sets
permalink query variables only if they're not empty, instead of
checking whether they're set.
More information about the wp-hackers