Opened 3 years ago

Closed 3 years ago

#13188 closed defect (bug) (worksforme)

add_rewrite_tag doesn't create query_var anymore

Reported by: kyr dunenkoff Owned by: ryan
Priority: normal Milestone:
Component: Query Version: 3.0
Severity: normal Keywords: query_vars
Cc:

Description

add_rewrite_tag('%login%','(login|logout)');
$wp_rewrite->add_permastruct('login','/%login%/',false,EP_NONE);

This is the code, and two days ago it worked perfectly, now I updated to latest nightly build, and this code doesn't produce query_vars anymore, though it shows in matched_query and matched_rule still.

Change History (1)

comment:1   dd323 years ago

  • Milestone 3.0 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This appears to be working for me under the latest trunk

Using that exact code in a mu-plugin results in it being in wp_rewrite/wp_query/wp.

Closing as worksforme, Re-open with a small plugin which shows the problem if you're still experiencing it

Note: See TracTickets for help on using tickets.