WordPress.org

Make WordPress Core

Ticket #33816: 33816.2.diff

File 33816.2.diff, 496 bytes (added by jeremyfelt, 6 years ago)
  • src/wp-admin/includes/misc.php

     
    246246        if ( defined( "WP_INSTALLING" ) )
    247247                return;
    248248
    249         // If home changed, write rewrite rules to new location.
    250         flush_rewrite_rules();
     249        if ( is_multisite() && ms_is_switched() ) {
     250                delete_option( 'rewrite_rules' );
     251        } else {
     252                flush_rewrite_rules();
     253        }
    251254}
    252255
    253256/**