Opened 6 years ago
Closed 6 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Rewrite Rules | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.