mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Remove unneeded quotes around vars. Props johnbillion. fixes #10245
git-svn-id: https://develop.svn.wordpress.org/trunk@12513 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -239,13 +239,13 @@ function wp_reset_vars( $vars ) {
|
||||
global $$var;
|
||||
|
||||
if (!isset( $$var ) ) {
|
||||
if ( empty( $_POST["$var"] ) ) {
|
||||
if ( empty( $_GET["$var"] ) )
|
||||
if ( empty( $_POST[$var] ) ) {
|
||||
if ( empty( $_GET[$var] ) )
|
||||
$$var = '';
|
||||
else
|
||||
$$var = $_GET["$var"];
|
||||
$$var = $_GET[$var];
|
||||
} else {
|
||||
$$var = $_POST["$var"];
|
||||
$$var = $_POST[$var];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user