Ticket #34306: 34306.diff
File 34306.diff, 3.3 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/schema.php
function populate_options() { 356 356 $guessurl = wp_guess_url(); 357 357 /** 358 358 * Fires before creating WordPress options and populating their default values. 359 359 * 360 360 * @since 2.6.0 361 361 */ 362 362 do_action( 'populate_options' ); 363 363 364 364 if ( ini_get('safe_mode') ) { 365 365 // Safe mode can break mkdir() so use a flat structure by default. 366 366 $uploads_use_yearmonth_folders = 0; 367 367 } else { 368 368 $uploads_use_yearmonth_folders = 1; 369 369 } 370 370 371 $template = WP_DEFAULT_THEME; 371 $template = $stylesheet = WP_DEFAULT_THEME; 372 if ( defined( 'WP_DEFAULT_THEME_NEW_DEFAULT' ) ) { 373 $theme = wp_get_theme( WP_DEFAULT_THEME_NEW_DEFAULT ); 374 if ( ! $theme->errors() ) { 375 $template = $stylesheet = WP_DEFAULT_THEME_NEW_DEFAULT; 376 } 377 } 378 372 379 // If default theme is a child theme, we need to get its template 373 380 $theme = wp_get_theme( $template ); 374 381 if ( ! $theme->errors() ) 375 382 $template = $theme->get_template(); 376 383 377 384 $timezone_string = ''; 378 385 $gmt_offset = 0; 379 386 /* translators: default GMT offset or timezone string. Must be either a valid offset (-12 to 14) 380 387 or a valid timezone string (America/New_York). See http://us3.php.net/manual/en/timezones.php 381 388 for all timezone strings supported by PHP. 382 389 */ 383 390 $offset_or_tz = _x( '0', 'default GMT offset or timezone string' ); 384 391 if ( is_numeric( $offset_or_tz ) ) 385 392 $gmt_offset = $offset_or_tz; 386 393 elseif ( $offset_or_tz && in_array( $offset_or_tz, timezone_identifiers_list() ) ) … … function populate_options() { 420 427 'comment_moderation' => 0, 421 428 'moderation_notify' => 1, 422 429 'permalink_structure' => '', 423 430 'blog_charset' => 'UTF-8', 424 431 'moderation_keys' => '', 425 432 'active_plugins' => array(), 426 433 'category_base' => '', 427 434 'ping_sites' => 'http://rpc.pingomatic.com/', 428 435 'comment_max_links' => 2, 429 436 'gmt_offset' => $gmt_offset, 430 437 431 438 // 1.5 432 439 'default_email_category' => 1, 433 440 'recently_edited' => '', 434 441 'template' => $template, 435 'stylesheet' => WP_DEFAULT_THEME,442 'stylesheet' => $stylesheet, 436 443 'comment_whitelist' => 1, 437 444 'blacklist_keys' => '', 438 445 'comment_registration' => 0, 439 446 'html_type' => 'text/html', 440 447 441 448 // 1.5.1 442 449 'use_trackback' => 0, 443 450 444 451 // 2.0 445 452 'default_role' => 'subscriber', 446 453 'db_version' => $wp_db_version, 447 454 448 455 // 2.0.1 449 456 'uploads_use_yearmonth_folders' => $uploads_use_yearmonth_folders, 450 457 'upload_path' => '', -
src/wp-includes/default-constants.php
function wp_templating_constants() { 339 339 */ 340 340 define('TEMPLATEPATH', get_template_directory()); 341 341 342 342 /** 343 343 * Filesystem path to the current active template stylesheet directory 344 344 * @since 2.1.0 345 345 */ 346 346 define('STYLESHEETPATH', get_stylesheet_directory()); 347 347 348 348 /** 349 349 * Slug of the default theme for this install. 350 350 * Used as the default theme when installing new sites. 351 351 * Will be used as the fallback if the current theme doesn't exist. 352 352 * @since 3.0.0 353 353 */ 354 if ( !defined('WP_DEFAULT_THEME') ) 354 if ( !defined('WP_DEFAULT_THEME') ) { 355 355 define( 'WP_DEFAULT_THEME', 'twentyfifteen' ); 356 define( 'WP_DEFAULT_THEME_NEW_DEFAULT', 'twentysixteen' ); 357 } 356 358 357 359 }