[wp-trac] [WordPress Trac] #44171: Flushing the rewrite rules is "wrong" on the front-end
WordPress Trac
noreply at wordpress.org
Mon May 21 09:43:51 UTC 2018
#44171: Flushing the rewrite rules is "wrong" on the front-end
-------------------------+--------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+--------------------
Follow-up from #44142.
"Flushing" these rules takes a lot of resources, writes to the db, and
(usually) overwrites .htaccess. Because of that it should only be
performed in wp-admin, especially in production. Add a `_doing_it_wrong()`
notice so theme and plugin authors are aware if this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44171>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list