Rewrite Rules cant be flushed when 10up Experience plugin is enabled
ivanlopez opened this issue · 6 comments
ivanlopez commented
Describe the bug
If you update an existing rewrite rule or register a new post type the rewrite rules are not updating when you flush the rewrite rules. It's due to the option failsafe code. In order to flush the rules, you have to disable the plugin first.
Steps to Reproduce
- Register a new public post type
- Flush the rewrite rules
- Create a new post and attempt to view it on the front-end
- The content 404's because there are no rewrite rules for it
Expected behavior
Flushing the rewrite rules should fully regenerate the rules instead of pulling them from the cache.
tlovett1 commented
@ivanlopez mind creating a PR?
ivanlopez commented
I can definitely create a PR.
TheLastCicada commented
Suggest closing this issue if this fix has made it into the production release?
claytoncollie commented
Can we close this issue since it was fixed in cb81667 ?
darylldoyle commented
Closing since this is fixed