Make WordPress Core

Ticket #27177: 35997.patch

File 35997.patch, 751 bytes (added by sebastian.pisula, 9 years ago)

4.5-beta1-36775

  • wp-includes/theme.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    718718                $default_theme_mods = (array) get_option( 'mods_' . $new_name );
    719719                if ( ! empty( $nav_menu_locations ) && empty( $default_theme_mods['nav_menu_locations'] ) ) {
    720720                        $default_theme_mods['nav_menu_locations'] = $nav_menu_locations;
     721                } else {
     722                        $default_theme_mods = get_option( 'theme_mods_' . $template, array() );
    721723                }
     724
    722725                add_option( "theme_mods_$stylesheet", $default_theme_mods );
    723726        } else {
    724727                /*