mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Properly handle child themes for WP_DEFAULT_THEME. Props SergeyBiryukov. fixes #18591
git-svn-id: https://develop.svn.wordpress.org/trunk@19249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
49e85592f0
commit
371bb1eb98
@ -343,6 +343,15 @@ function populate_options() {
|
||||
$uploads_use_yearmonth_folders = 1;
|
||||
}
|
||||
|
||||
$template = WP_DEFAULT_THEME;
|
||||
// If default theme is a child theme, we need to get its template
|
||||
foreach ( (array) get_themes() as $theme ) {
|
||||
if ( WP_DEFAULT_THEME == $theme['Stylesheet'] ) {
|
||||
$template = $theme['Template'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$options = array(
|
||||
'siteurl' => $guessurl,
|
||||
'blogname' => __('My Site'),
|
||||
@ -394,7 +403,7 @@ function populate_options() {
|
||||
// 1.5
|
||||
'default_email_category' => 1,
|
||||
'recently_edited' => '',
|
||||
'template' => WP_DEFAULT_THEME,
|
||||
'template' => $template,
|
||||
'stylesheet' => WP_DEFAULT_THEME,
|
||||
'comment_whitelist' => 1,
|
||||
'blacklist_keys' => '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user