Make WordPress Core

Opened 10 years ago

Last modified 8 years ago

#38518 new defect (bug)

Rewrite Rules rebuilding on parse_request

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

Description

Hi,

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 10 years ago.

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.