Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#38518 new defect (bug)

Rewrite Rules rebuilding on parse_request

Reported by: andyphillips82's profile andyphillips82 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6.1
Component: Rewrite Rules Keywords:
Focuses: Cc:



We have an issue that when flush_rewrite_rules is flushing, another request is coming in an parse_request is firing. While update_option('rewrite_rules', ' ') is deleted and the rules are being processed, parse_request is passing the conditional and writing it's own rules.

I've created a patch that has flush_rewrite_rules being solely responsible for rebuilding the rewrite rules. Otherwise, parse request will just read the current rules.

Attachments (1)

class-wp-rewrite.php (58.6 KB) - added by andyphillips82 8 years ago.

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.