From 72d4b140fb306d5f5c2e7416c6ed896f0282d808 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 Nov 2013 20:02:09 +0000 Subject: [PATCH] Make Twenty Fourteen the default theme. props markmcwilliams. fixes #25702. Built from https://develop.svn.wordpress.org/trunk@26024 git-svn-id: http://core.svn.wordpress.org/trunk@25955 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update-core.php | 1 + wp-admin/includes/upgrade.php | 2 +- wp-admin/nav-menus.php | 2 +- wp-includes/class-wp-theme.php | 1 + wp-includes/default-constants.php | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index d466607079..6089f6da1e 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -589,6 +589,7 @@ $_new_bundled_files = array( 'themes/twentyeleven/' => '3.2', 'themes/twentytwelve/' => '3.5', 'themes/twentythirteen/' => '3.6', + 'themes/twentyfourteen/' => '3.8', ); /** diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index b1b85555e3..513cea79d8 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -218,7 +218,7 @@ As a new WordPress user, you should go to your dashboard to d update_option( 'widget_archives', array ( 2 => array ( 'title' => '', 'count' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) ); update_option( 'widget_categories', array ( 2 => array ( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) ); update_option( 'widget_meta', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) ); - update_option( 'sidebars_widgets', array ( 'wp_inactive_widgets' => array (), 'sidebar-1' => array ( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2', ), 'sidebar-2' => array (),'array_version' => 3 ) ); + update_option( 'sidebars_widgets', array ( 'wp_inactive_widgets' => array (), 'sidebar-1' => array ( 0 => 'search-2', 1 => 'recent-posts-2', 2 => 'recent-comments-2', 3 => 'archives-2', 4 => 'categories-2', 5 => 'meta-2', ), 'sidebar-2' => array (), 'sidebar-3' => array (), 'array_version' => 3 ) ); if ( ! is_multisite() ) update_user_meta( $user_id, 'show_welcome_panel', 1 ); diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index 7527753b20..a53513116a 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -476,7 +476,7 @@ if ( ! current_theme_supports( 'menus' ) && ! $num_locations ) if ( ! $locations_screen ) : // Main tab $overview = '

' . __( 'This screen is used for managing your custom navigation menus.' ) . '

'; - $overview .= '

' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Custom Menu” widget on the Widgets screen. If your theme does not support the custom menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Thirteen', 'Twenty Twelve' ) . '

'; + $overview .= '

' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Custom Menu” widget on the Widgets screen. If your theme does not support the custom menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Fourteen', 'Twenty Thirteen' ) . '

'; $overview .= '

' . __( 'From this screen you can:' ) . '

'; $overview .= ''; diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index cd4ef4ee08..ba075551ec 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -43,6 +43,7 @@ final class WP_Theme implements ArrayAccess { 'twentyeleven' => 'Twenty Eleven', 'twentytwelve' => 'Twenty Twelve', 'twentythirteen' => 'Twenty Thirteen', + 'twentyfourteen' => 'Twenty Fourteen', ); /** diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php index 7326d6c849..4f135c82eb 100644 --- a/wp-includes/default-constants.php +++ b/wp-includes/default-constants.php @@ -311,6 +311,6 @@ function wp_templating_constants() { * @since 3.0.0 */ if ( !defined('WP_DEFAULT_THEME') ) - define( 'WP_DEFAULT_THEME', 'twentythirteen' ); + define( 'WP_DEFAULT_THEME', 'twentyfourteen' ); }