WordPress.org

Make WordPress Core

Ticket #33816: 33816.diff

File 33816.diff, 537 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        // Rewrite rules can't be flushed during switch to blog.
     250        if ( ms_is_switched() ) {
     251                delete_option( 'rewrite_rules' );
     252        } else {
     253                flush_rewrite_rules();
     254        }
    251255}
    252256
    253257/**