id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 47686,Always flush rewrite rules when active plugins changes & on plugin upgrades,johnjamesjacoby,,"I think it's odd that plugins each need to roll their own rewrite rule flushing. It's definitely nice to have the freedom to decide when it's necessary, but it is inconvenient as a developer to reinvent a new way with every new plugin whenever a rule needs to be changed. It's also inconvenient to users when a plugin forgets to flush rules, or when a developer is unaware that it is their responsibility to flush their own rules. I'm proposing here that WordPress core could improve the lives of both developers and users by automatically flushing rewrite rules every time a plugin is activated, deactivated, or updated. For context, `flush_rewrite_rules()` is already called inside of `check_theme_switched()` which in hooked to `init` and always flushes rewrite rules when a new theme is activated, and I'm suggesting we consider doing this for plugins too.",defect (bug),new,normal,Awaiting Review,Rewrite Rules,,normal,,,,