mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Upgrade: New themes are not automatically installed on upgrade. This can still be explicitly asked for by defining CORE_UPGRADE_SKIP_NEW_BUNDLED as false.
In `populate_options()`, if the theme specified by `WP_DEFAULT_THEME` doesn't exist, fall back to the latest core default theme. If we can't find a core default theme, `WP_DEFAULT_THEME` is the best we can do. Props nacin, jeremyfelt, dd32. See #34306. git-svn-id: https://develop.svn.wordpress.org/trunk@35738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -348,8 +348,10 @@ function wp_templating_constants() {
|
||||
/**
|
||||
* Slug of the default theme for this install.
|
||||
* Used as the default theme when installing new sites.
|
||||
* Will be used as the fallback if the current theme doesn't exist.
|
||||
* It will be used as the fallback if the current theme doesn't exist.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @see WP_Theme::get_core_default_theme()
|
||||
*/
|
||||
if ( !defined('WP_DEFAULT_THEME') )
|
||||
define( 'WP_DEFAULT_THEME', 'twentyfifteen' );
|
||||
|
||||
Reference in New Issue
Block a user