mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 01:24:27 +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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user