Ticket #12283: 12283.3.patch
File 12283.3.patch, 1.1 KB (added by , 15 years ago) |
---|
-
load.php
82 82 $PHP_SELF = $_SERVER['PHP_SELF']; 83 83 if ( empty( $PHP_SELF ) ) 84 84 $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace( "/(\?.*)?$/",'',$_SERVER["REQUEST_URI"] ); 85 86 87 /** 88 * global $_SERVER array initialisation if certain indexes are not used 89 * to prevent warnings on all requests. 90 */ 91 foreach ( array( 'HTTP_HOST', 'REQUEST_URI', 'SERVER_SOFTWARE' ) as $var ) 92 if ( !isset($_SERVER[$var]) ) 93 $_SERVER[$var] = ''; 85 94 } 86 95 87 96 /** -
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 ( !empty( $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';