From 582d46c937aa8ae1a12b487e378900beb07ca93c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 27 Sep 2012 07:47:51 +0000 Subject: [PATCH] Make Twenty Twelve the default theme for new installs. props markoheijnen, SergeyBiryukov. see #21789. git-svn-id: http://core.svn.wordpress.org/trunk@22054 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update-core.php | 3 ++- wp-admin/includes/upgrade.php | 2 +- wp-includes/class-wp-theme.php | 1 + wp-includes/default-constants.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index f61029a41c..72a0ccaf6c 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -559,7 +559,8 @@ global $_new_bundled_files; $_new_bundled_files = array( 'plugins/akismet/' => '2.0', 'themes/twentyten/' => '3.0', -'themes/twentyeleven/' => '3.2' +'themes/twentyeleven/' => '3.2', +'themes/twentytwelve/' => '3.5', ); /** diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 4fb2907675..fc5aa9dce0 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 ( ), 'sidebar-3' => array ( ), 'sidebar-4' => array ( ), 'sidebar-5' => 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-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 13ccfc29e8..a6632e80f6 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -41,6 +41,7 @@ final class WP_Theme implements ArrayAccess { 'default' => 'WordPress Default', 'twentyten' => 'Twenty Ten', 'twentyeleven' => 'Twenty Eleven', + 'twentytwelve' => 'Twenty Twelve', ); /** diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php index a795e5cebe..aae65c3d85 100644 --- a/wp-includes/default-constants.php +++ b/wp-includes/default-constants.php @@ -304,6 +304,6 @@ function wp_templating_constants( ) { * @since 3.0.0 */ if ( !defined('WP_DEFAULT_THEME') ) - define( 'WP_DEFAULT_THEME', 'twentyeleven' ); + define( 'WP_DEFAULT_THEME', 'twentytwelve' ); }