Opened 4 years ago
Closed 4 years ago
#51903 closed enhancement (duplicate)
Check if plugin is making changes in permalinks and call flush_rules with it activation/deactivation
Reported by: | oglekler | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Rewrite Rules | Keywords: | |
Focuses: | Cc: |
Description
Often happened problem, where is necessary to call flush_rules, for example, if Yoast was installed 'sitemap_index.xml', will return 404 error, if Yoast will be uninstalled wp-sitemap.xml will return 404 error because in 'rewrite_rules' will be still present previous rules and user/site manager can have no idea that he/she needs to go and flush these rules manually.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Right now it's a plugin's responsibility to flush permalinks on plugin activation/deactivation. I think it's impossible to detect whether a plugin is making any such changes without doing it.