Use POST and GET instead of REQUEST since they are sanitized. fixes #2888
git-svn-id: https://develop.svn.wordpress.org/trunk@3969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3b51a5aa38
commit
bba1954017
|
@ -1959,11 +1959,13 @@ function wp_reset_vars($vars) {
|
|||
global $$var;
|
||||
|
||||
if (!isset($$var)) {
|
||||
if (empty($_REQUEST["$var"])) {
|
||||
$$var = '';
|
||||
if (empty($_POST["$var"])) {
|
||||
if (empty($_GET["$var"]))
|
||||
$$var = '';
|
||||
else
|
||||
$$var = $_GET["$var"];
|
||||
} else {
|
||||
$$var = $_REQUEST["$var"];
|
||||
unset($_REQUEST["$wpvar"]);
|
||||
$$var = $_POST["$var"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue