diff --git wp-includes/class-wp.php wp-includes/class-wp.php
index 36faf66..11957de 100644
|
|
|
class WP { |
| 84 | 84 | var $did_permalink = false; |
| 85 | 85 | |
| 86 | 86 | /** |
| | 87 | * Unslashed GET superglobal |
| | 88 | * |
| | 89 | * @since 3.6.0 |
| | 90 | * @var array |
| | 91 | */ |
| | 92 | var $GET = array(); |
| | 93 | |
| | 94 | /** |
| | 95 | * Unslashed POST superglobal |
| | 96 | * |
| | 97 | * @since 3.6.0 |
| | 98 | * @var array |
| | 99 | */ |
| | 100 | var $POST = array(); |
| | 101 | |
| | 102 | /** |
| | 103 | * Unslashed REQUEST superglobal |
| | 104 | * |
| | 105 | * @since 3.6.0 |
| | 106 | * @var array |
| | 107 | */ |
| | 108 | var $REQUEST = array(); |
| | 109 | |
| | 110 | /** |
| 87 | 111 | * Add name to list of public query variables. |
| 88 | 112 | * |
| 89 | 113 | * @since 2.1.0 |
diff --git wp-includes/load.php wp-includes/load.php
index 8a94962..9d79197 100644
|
|
|
function wp_set_internal_encoding() { |
| 530 | 530 | * @since 3.0.0 |
| 531 | 531 | */ |
| 532 | 532 | function wp_magic_quotes() { |
| | 533 | global $wp; |
| | 534 | |
| 533 | 535 | // If already slashed, strip. |
| 534 | 536 | if ( get_magic_quotes_gpc() ) { |
| 535 | 537 | $_GET = stripslashes_deep( $_GET ); |
| … |
… |
function wp_magic_quotes() { |
| 537 | 539 | $_COOKIE = stripslashes_deep( $_COOKIE ); |
| 538 | 540 | } |
| 539 | 541 | |
| | 542 | // During setup, we don't have a global request object |
| | 543 | if ( isset( $wp ) ) { |
| | 544 | // Store the unslashed superglobals |
| | 545 | $wp->GET = $_GET; |
| | 546 | $wp->POST = $_POST; |
| | 547 | $wp->REQUEST = array_merge( $_GET, $_POST ); |
| | 548 | } |
| | 549 | |
| 540 | 550 | // Escape with wpdb. |
| 541 | 551 | $_GET = add_magic_quotes( $_GET ); |
| 542 | 552 | $_POST = add_magic_quotes( $_POST ); |
diff --git wp-settings.php wp-settings.php
index 1094749..026d858 100644
|
|
|
do_action( 'plugins_loaded' ); |
| 213 | 213 | // Define constants which affect functionality if not already defined. |
| 214 | 214 | wp_functionality_constants(); |
| 215 | 215 | |
| 216 | | // Add magic quotes and set up $_REQUEST ( $_GET + $_POST ) |
| 217 | | wp_magic_quotes(); |
| 218 | | |
| 219 | 216 | do_action( 'sanitize_comment_cookies' ); |
| 220 | 217 | |
| 221 | 218 | /** |
| … |
… |
$GLOBALS['wp_rewrite'] = new WP_Rewrite(); |
| 247 | 244 | */ |
| 248 | 245 | $wp = new WP(); |
| 249 | 246 | |
| | 247 | // Add magic quotes and set up $_REQUEST ( $_GET + $_POST ) |
| | 248 | wp_magic_quotes(); |
| | 249 | |
| 250 | 250 | /** |
| 251 | 251 | * WordPress Widget Factory Object |
| 252 | 252 | * @global object $wp_widget_factory |