Make WordPress Core

Ticket #33600: 33600.patch

File 33600.patch, 1.1 KB (added by dlh, 8 years ago)
  • src/wp-admin/includes/schema.php

     
    507507                        ? $wp_current_db_version : $wp_db_version;
    508508        }
    509509
     510        // x.y.z
     511        $options[ 'theme_mods_' . $options['stylesheet'] ] = array();
     512
    510513        // 3.0 multisite
    511514        if ( is_multisite() ) {
    512515                /* translators: blog tagline */
  • tests/phpunit/tests/theme.php

     
    296296                $this->assertEquals($template, get_template());
    297297                $this->assertEquals($style, get_stylesheet());
    298298        }
     299
     300        /**
     301         * Test that installation added a "theme_mods_" option for the default theme.
     302         */
     303        function test_populate_options_theme_mod() {
     304                $stylesheet = get_option( 'stylesheet' );
     305                $this->assertSame( WP_DEFAULT_THEME, $stylesheet );
     306                $this->assertSame( array(), get_option( "theme_mods_{$stylesheet}" ) );
     307        }
     308
    299309}