Changeset 1139 for trunk/wp-settings.php
- Timestamp:
- 10/30/07 16:49:38 (1 year ago)
- Files:
-
- trunk/wp-settings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-settings.php
r1134 r1139 45 45 $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL']; 46 46 } 47 else 48 { 49 // Some IIS + PHP configurations puts the script-name in the path-info (No need to append it twice) 50 if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] ) 47 else { 48 // If root then simulate that no script-name was specified 49 if (empty($_SERVER['PATH_INFO'])) 50 $_SERVER['REQUEST_URI'] = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/'; 51 elseif ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] ) 52 // Some IIS + PHP configurations puts the script-name in the path-info (No need to append it twice) 51 53 $_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO']; 52 54 else … … 102 104 timer_start(); 103 105 104 // Add define('WP_DEBUG',true); to wp-config.php to enable display of notices during development. 105 if (defined('WP_DEBUG') and WP_DEBUG == true) { 106 error_reporting(E_ALL); 107 } else { 108 error_reporting(E_ALL ^ E_NOTICE); 109 } 106 // Change to E_ALL for development/debugging 107 error_reporting(E_ALL ^ E_NOTICE); 110 108 111 109 // For an advanced caching plugin to use, static because you would only want one … … 128 126 require (ABSPATH . WPINC . '/functions.php'); 129 127 130 require_wp_db(); 128 if ( file_exists(ABSPATH . 'wp-content/db.php') ) 129 require_once (ABSPATH . 'wp-content/db.php'); 130 else 131 require_once (ABSPATH . WPINC . '/wp-db.php'); 132 131 133 // $table_prefix is deprecated as of 2.1 132 134 $wpdb->prefix = $wpdb->base_prefix = $table_prefix; … … 178 180 else 179 181 require_once (ABSPATH . WPINC . '/cache.php'); 180 181 // To disable persistant caching, add the below line to your wp-config.php file, uncommented of course.182 // define('DISABLE_CACHE', true);183 182 184 183 wp_cache_init();
