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
This commit is contained in:
parent
3cf9d9d905
commit
582d46c937
|
@ -559,7 +559,8 @@ global $_new_bundled_files;
|
||||||
$_new_bundled_files = array(
|
$_new_bundled_files = array(
|
||||||
'plugins/akismet/' => '2.0',
|
'plugins/akismet/' => '2.0',
|
||||||
'themes/twentyten/' => '3.0',
|
'themes/twentyten/' => '3.0',
|
||||||
'themes/twentyeleven/' => '3.2'
|
'themes/twentyeleven/' => '3.2',
|
||||||
|
'themes/twentytwelve/' => '3.5',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -218,7 +218,7 @@ As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d
|
||||||
update_option( 'widget_archives', array ( 2 => array ( 'title' => '', 'count' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) );
|
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_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( '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() )
|
if ( ! is_multisite() )
|
||||||
update_user_meta( $user_id, 'show_welcome_panel', 1 );
|
update_user_meta( $user_id, 'show_welcome_panel', 1 );
|
||||||
|
|
|
@ -41,6 +41,7 @@ final class WP_Theme implements ArrayAccess {
|
||||||
'default' => 'WordPress Default',
|
'default' => 'WordPress Default',
|
||||||
'twentyten' => 'Twenty Ten',
|
'twentyten' => 'Twenty Ten',
|
||||||
'twentyeleven' => 'Twenty Eleven',
|
'twentyeleven' => 'Twenty Eleven',
|
||||||
|
'twentytwelve' => 'Twenty Twelve',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -304,6 +304,6 @@ function wp_templating_constants( ) {
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
if ( !defined('WP_DEFAULT_THEME') )
|
if ( !defined('WP_DEFAULT_THEME') )
|
||||||
define( 'WP_DEFAULT_THEME', 'twentyeleven' );
|
define( 'WP_DEFAULT_THEME', 'twentytwelve' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue