diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-09 09:25:04 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-09 09:25:04 +0000 |
| commit | b3b0755d5f7951312ac5acf99f5548e0052207ea (patch) | |
| tree | 2ed258ae1be2e7574154b5a4b8c1246ff0f9fc86 /wp-inst/wp-settings.php | |
| parent | 0ee78e83565aed4553dd5beeff33de170ee03130 (diff) | |
Changes from WP
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@143 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-settings.php')
| -rw-r--r-- | wp-inst/wp-settings.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/wp-inst/wp-settings.php b/wp-inst/wp-settings.php index 91bdba4..39a1577 100644 --- a/wp-inst/wp-settings.php +++ b/wp-inst/wp-settings.php @@ -3,9 +3,13 @@ $HTTP_HOST = getenv('HTTP_HOST'); /* domain name */ $REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */ $HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */ +// Turn register globals off - Christian Schmidt +foreach ( array_merge($_REQUEST, $_SERVER, $_ENV) as $name => $value ) + unset($$name); + // Fix for IIS, which doesn't set REQUEST_URI -if (! isset($_SERVER['REQUEST_URI'])) { - $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; +if ( empty( $_SERVER['REQUEST_URI'] ) ) { + $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; // Does this work under CGI? // Append the query string if it exists and isn't null if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) { @@ -144,7 +148,7 @@ if ( defined('CUSTOM_USER_TABLE') ) $wpdb->users = CUSTOM_USER_TABLE; if ( defined('CUSTOM_USER_META_TABLE') ) $wpdb->usermeta = CUSTOM_USER_META_TABLE; - + // We're going to need to keep this around for a few months even though we're not using it internally $tableposts = $wpdb->posts; @@ -157,6 +161,8 @@ $tablelinkcategories = $wpdb->linkcategories; $tableoptions = $wpdb->options; $tablepostmeta = $wpdb->postmeta; +$wp_filters = array(); + require (ABSPATH . WPINC . '/functions.php'); require (ABSPATH . WPINC . '/default-filters.php'); require_once (ABSPATH . WPINC . '/wp-l10n.php'); |
