WordPress.org

Make WordPress Core

Changeset 2768


Ignore:
Timestamp:
08/09/2005 08:26:54 AM (16 years ago)
Author:
matt
Message:

Turn register globals off. Hat tip: Christian Schmidt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r2744 r2768  
    33$REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
    44$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
     5
     6// Turn register globals off - Christian Schmidt
     7foreach ( array_merge($_REQUEST, $_SERVER, $_ENV) as $name => $value )
     8    unset($$name);
    59
    610// Fix for IIS, which doesn't set REQUEST_URI
     
    6973$tableoptions = $wpdb->options;
    7074$tablepostmeta = $wpdb->postmeta;
     75
     76$wp_filters = array();
    7177
    7278require (ABSPATH . WPINC . '/functions.php');
Note: See TracChangeset for help on using the changeset viewer.