Ticket #12283: 12283.2.patch
File 12283.2.patch, 1.2 KB (added by , 15 years ago) |
---|
-
wordpress/wp-includes/theme.php
624 624 if ($stylesheet_or_template) { 625 625 $theme_roots = get_theme_roots(); 626 626 627 if ( $theme_roots[$stylesheet_or_template] )627 if ( isset( $theme_roots[$stylesheet_or_template] ) && $theme_roots[$stylesheet_or_template] ) 628 628 $theme_root = WP_CONTENT_DIR . $theme_roots[$stylesheet_or_template]; 629 629 else 630 630 $theme_root = WP_CONTENT_DIR . '/themes'; -
wordpress/wp-settings.php
39 39 40 40 // Standardize $_SERVER variables across setups. 41 41 wp_fix_server_vars(); 42 43 /** 44 * global $_SERVER array initialisation if certain indexes are not used 45 */ 46 foreach ( array( 'HTTP_HOST', 'REQUEST_URI', 'SERVER_SOFTWARE' ) as $var ) 47 if ( !isset($_SERVER[$var]) ) 48 $_SERVER[$var] = ''; 42 49 43 50 // Check for the required PHP version and for the MySQL extension or a database drop-in. 44 51 wp_check_php_mysql_versions();