Changeset 4990 for trunk/wp-settings.php
- Timestamp:
- 03/07/2007 05:29:15 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-settings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r4972 r4990 41 41 42 42 // Fix for Dreamhost and other PHP as CGI hosts 43 if ( strstr( $_SERVER['SCRIPT_NAME'], 'php.cgi' ))43 if (strpos($_SERVER['SCRIPT_NAME'], 'php.cgi') !== false) 44 44 unset($_SERVER['PATH_INFO']); 45 45 … … 141 141 require_once (ABSPATH . WPINC . '/l10n.php'); 142 142 143 if ( !is_blog_installed() && ( !strstr($_SERVER['PHP_SELF'], 'install.php')&& !defined('WP_INSTALLING')) ) {144 if ( strstr($_SERVER['PHP_SELF'], 'wp-admin'))143 if ( !is_blog_installed() && (strpos($_SERVER['PHP_SELF'], 'install.php') === false && !defined('WP_INSTALLING')) ) { 144 if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) 145 145 $link = 'install.php'; 146 146 else … … 173 173 require (ABSPATH . WPINC . '/script-loader.php'); 174 174 175 if ( !strstr($_SERVER['PHP_SELF'], 'install.php')) :175 if (strpos($_SERVER['PHP_SELF'], 'install.php') === false) { 176 176 // Used to guarantee unique hash cookies 177 177 $cookiehash = md5(get_option('siteurl')); 178 178 define('COOKIEHASH', $cookiehash); 179 endif; 179 } 180 180 181 181 if ( !defined('USER_COOKIE') )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)