WordPress.org

Make WordPress Core

Changeset 20482


Ignore:
Timestamp:
04/16/12 21:52:02 (2 years ago)
Author:
nacin
Message:

Do sanity checks for register_globals and magic quotes in setup-config.php. see #13839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/setup-config.php

    r19937 r20482  
    4848wp_load_translations_early(); 
    4949 
     50// Check for the required PHP version and for the MySQL extension or a database drop-in. 
    5051wp_check_php_mysql_versions(); 
     52 
     53// Turn register_globals off. 
     54wp_unregister_GLOBALS(); 
    5155 
    5256require_once(ABSPATH . WPINC . '/compat.php'); 
    5357require_once(ABSPATH . WPINC . '/class-wp-error.php'); 
     58require_once(ABSPATH . WPINC . '/formatting.php'); 
     59 
     60// Add magic quotes and set up $_REQUEST ( $_GET + $_POST ) 
     61wp_magic_quotes(); 
    5462 
    5563if ( ! file_exists( ABSPATH . 'wp-config-sample.php' ) ) 
Note: See TracChangeset for help on using the changeset viewer.