[wp-trac] [WordPress Trac] #16201: when updating a multisite blog subblogs getting 404 error
WordPress Trac
noreply at wordpress.org
Fri Feb 22 03:07:15 UTC 2013
#16201: when updating a multisite blog subblogs getting 404 error
-------------------------------+------------------------------
Reporter: YogieAnamCara | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.5.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by mackensen):
* cc: mackensen (added)
* version: => 3.5.1
Comment:
Replying to [comment:22 wpmuguru]:
> Can anyone reproduce this in an install with no plugins and sites that
are created with the Network Admin -> Add Site screen ?
I've just done so with 3.5.1. This was a clean install from a tarball with
no plugins and no other users. After adding the new site via Add Site I
immediately loaded it and clicked on the "Uncategorized" category, which
returned the "this is embarrassing" message. I believe this happens
because populate_options() is bringing over the rewrite_rules option from
the main site which includes all the blog/etc rules (appropriate for the
main site but useless in a subdirectory instance). One method I've found
to fix this is to reset the rewrite_rules option immediately after
populate_options is done (in the wpmu_create_blog function):
{{{
update_option( 'rewrite_rules', array() );
}}}
That way the proper rewrite rules get generated on first visit. Hope this
helps.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16201#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list