[wp-trac] [WordPress Trac] #16096: editing permalink structure in edit site causes 404s on site
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 4 16:15:54 UTC 2011
#16096: editing permalink structure in edit site causes 404s on site
---------------------------+-----------------------------
Reporter: wpmuguru | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Network Admin | Version:
Severity: normal | Keywords: has-patch
---------------------------+-----------------------------
If you edit a sites permalink structure in the network admin edit site
screen, the site's rewrite rules do not get updated. The
permalink_structure option is used to generate the permalinks on the front
end of the site. Hence the rewrite rules will not match the permalinks
until the permalink settings screen is visited in the site's dashboard.
The two alternatives are remove the permalink setting from the edit site
screen or clear the rewrite rules.
I'm attaching a patch to clear the rewrite rules. The patch uses
update_option instead of delete_option because update_option leaves the
empty option in the object cache. If the option is deleted then WP will
query the DB, add rewrite_rules to the notoptions cache, generate the
rules, update the DB & remove rewrite_rules from the notoptions cache.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16096>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list