WordPress.org

Make WordPress Core

Ticket #18591: 18591.patch

File 18591.patch, 841 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-admin/includes/schema.php

     
    195195                $uploads_use_yearmonth_folders = 1;
    196196        }
    197197
     198        $template = WP_DEFAULT_THEME;
     199        // If default theme is a child theme, we need to get its template
     200        foreach ( get_themes() as $theme ) {
     201                if ( WP_DEFAULT_THEME == $theme['Stylesheet'] ) {
     202                        $template = $theme['Template'];
     203                        break;
     204                }
     205        }
     206
    198207        $options = array(
    199208        'siteurl' => $guessurl,
    200209        'blogname' => __('My Site'),
     
    246255        // 1.5
    247256        'default_email_category' => 1,
    248257        'recently_edited' => '',
    249         'template' => WP_DEFAULT_THEME,
     258        'template' => $template,
    250259        'stylesheet' => WP_DEFAULT_THEME,
    251260        'comment_whitelist' => 1,
    252261        'blacklist_keys' => '',