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:
Scott Taylor
2015-11-25 21:44:02 +00:00
parent 2be61281f0
commit 663b7f28ff
6 changed files with 86 additions and 20 deletions

View File

@@ -176,6 +176,7 @@ class Tests_Theme extends WP_UnitTestCase {
* @ticket 29925
*/
function test_default_theme_in_default_theme_list() {
$this->markTestSkipped( 'Core repository inclusion was stopped after Twenty Fifteen' );
if ( 'twenty' === substr( WP_DEFAULT_THEME, 0, 6 ) ) {
$this->assertContains( WP_DEFAULT_THEME, $this->default_themes );
}