mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Be consistent about slashing _REQUEST superglobal. props dd32. fixes #10360
git-svn-id: http://svn.automattic.com/wordpress/trunk@11760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa6bbb479c
commit
a431376de5
@ -47,9 +47,6 @@ wp_unregister_GLOBALS();
|
|||||||
|
|
||||||
unset( $wp_filter, $cache_lastcommentmodified, $cache_lastpostdate );
|
unset( $wp_filter, $cache_lastcommentmodified, $cache_lastpostdate );
|
||||||
|
|
||||||
// Force REQUEST to be GET + POST. If SERVER, COOKIE, or ENV are needed, use those superglobals directly.
|
|
||||||
$_REQUEST = array_merge($_GET, $_POST);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The $blog_id global, which you can change in the config allows you to create a simple
|
* The $blog_id global, which you can change in the config allows you to create a simple
|
||||||
* multiple blog installation using just one WordPress and changing $blog_id around.
|
* multiple blog installation using just one WordPress and changing $blog_id around.
|
||||||
@ -605,6 +602,9 @@ $_POST = add_magic_quotes($_POST );
|
|||||||
$_COOKIE = add_magic_quotes($_COOKIE);
|
$_COOKIE = add_magic_quotes($_COOKIE);
|
||||||
$_SERVER = add_magic_quotes($_SERVER);
|
$_SERVER = add_magic_quotes($_SERVER);
|
||||||
|
|
||||||
|
// Force REQUEST to be GET + POST. If SERVER, COOKIE, or ENV are needed, use those superglobals directly.
|
||||||
|
$_REQUEST = array_merge($_GET, $_POST);
|
||||||
|
|
||||||
do_action('sanitize_comment_cookies');
|
do_action('sanitize_comment_cookies');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user