You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line will (may?) result in each site on the network inheriting the rewrite rules of the main site. Or the first 100 due to the default limit on wp_get_sites().
delete_option( 'rewrite_rules' ); would be a replacement, but things get ugly when there's a bunch of sites. 😞
It may be best to just put up a notice in the network admin instead explaining that rewrites need to be flushed manually.
Also, restore_current_blog() only goes up one level in the stack. That should live in the foreach() or there should be a while( ms_is_switched() ).
Sorry, walking out the door and didn't have time to put together a proper PR. 🌟 💥
The text was updated successfully, but these errors were encountered:
This line will (may?) result in each site on the network inheriting the rewrite rules of the main site. Or the first 100 due to the default limit on
wp_get_sites()
.delete_option( 'rewrite_rules' );
would be a replacement, but things get ugly when there's a bunch of sites. 😞It may be best to just put up a notice in the network admin instead explaining that rewrites need to be flushed manually.
Also,
restore_current_blog()
only goes up one level in the stack. That should live in theforeach()
or there should be awhile( ms_is_switched() )
.Sorry, walking out the door and didn't have time to put together a proper PR. 🌟 💥
The text was updated successfully, but these errors were encountered: