WordPress.org

Make WordPress Core

Ticket #38372: 38372.2.patch

File 38372.2.patch, 3.0 KB (added by davidakennedy, 3 years ago)

Make Twenty Seventeen the default theme, v2

  • src/wp-admin/includes/update-core.php

     
    735735global $_new_bundled_files;
    736736
    737737$_new_bundled_files = array(
    738         'plugins/akismet/'       => '2.0',
    739         'themes/twentyten/'      => '3.0',
    740         'themes/twentyeleven/'   => '3.2',
    741         'themes/twentytwelve/'   => '3.5',
    742         'themes/twentythirteen/' => '3.6',
    743         'themes/twentyfourteen/' => '3.8',
    744         'themes/twentyfifteen/'  => '4.1',
    745         'themes/twentysixteen/'  => '4.4',
     738        'plugins/akismet/'        => '2.0',
     739        'themes/twentyten/'       => '3.0',
     740        'themes/twentyeleven/'    => '3.2',
     741        'themes/twentytwelve/'    => '3.5',
     742        'themes/twentythirteen/'  => '3.6',
     743        'themes/twentyfourteen/'  => '3.8',
     744        'themes/twentyfifteen/'   => '4.1',
     745        'themes/twentysixteen/'   => '4.4',
     746        'themes/twentyseventeen/' => '4.7',
    746747);
    747748
    748749// If not explicitly defined as false, don't install new default themes.
  • src/wp-includes/class-wp-theme.php

     
    4848         * @var array
    4949         */
    5050        private static $default_themes = array(
    51                 'classic'        => 'WordPress Classic',
    52                 'default'        => 'WordPress Default',
    53                 'twentyten'      => 'Twenty Ten',
    54                 'twentyeleven'   => 'Twenty Eleven',
    55                 'twentytwelve'   => 'Twenty Twelve',
    56                 'twentythirteen' => 'Twenty Thirteen',
    57                 'twentyfourteen' => 'Twenty Fourteen',
    58                 'twentyfifteen'  => 'Twenty Fifteen',
    59                 'twentysixteen'  => 'Twenty Sixteen',
     51                'classic'          => 'WordPress Classic',
     52                'default'          => 'WordPress Default',
     53                'twentyten'        => 'Twenty Ten',
     54                'twentyeleven'     => 'Twenty Eleven',
     55                'twentytwelve'     => 'Twenty Twelve',
     56                'twentythirteen'   => 'Twenty Thirteen',
     57                'twentyfourteen'   => 'Twenty Fourteen',
     58                'twentyfifteen'    => 'Twenty Fifteen',
     59                'twentysixteen'    => 'Twenty Sixteen',
     60                'twentyseventeen'  => 'Twenty Seventeen',
    6061        );
    6162
    6263        /**
  • src/wp-includes/default-constants.php

     
    357357         * @see WP_Theme::get_core_default_theme()
    358358         */
    359359        if ( !defined('WP_DEFAULT_THEME') )
    360                 define( 'WP_DEFAULT_THEME', 'twentysixteen' );
     360                define( 'WP_DEFAULT_THEME', 'twentyseventeen' );
    361361
    362362}
  • tests/phpunit/tests/theme.php

     
    1010        protected $theme_name = 'Twenty Eleven';
    1111        protected $default_themes = array(
    1212                'twentyten', 'twentyeleven', 'twentytwelve', 'twentythirteen',
    13                 'twentyfourteen', 'twentyfifteen',
     13                'twentyfourteen', 'twentyfifteen', 'twentyseventeen',
    1414        );
    1515
    1616        function setUp() {