mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Renaming Reloaded.
git-svn-id: https://develop.svn.wordpress.org/trunk@628 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+9
-9
@@ -11,19 +11,19 @@ if (!file_exists($curpath . '/wp-config.php'))
|
||||
|
||||
require_once ($curpath.'/wp-config.php');
|
||||
|
||||
$b2varstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'name', 'category_name');
|
||||
$wpvarstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'name', 'category_name');
|
||||
|
||||
for ($i=0; $i<count($b2varstoreset); $i += 1) {
|
||||
$b2var = $b2varstoreset[$i];
|
||||
if (!isset($$b2var)) {
|
||||
if (empty($HTTP_POST_VARS[$b2var])) {
|
||||
if (empty($HTTP_GET_VARS[$b2var])) {
|
||||
$$b2var = '';
|
||||
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
||||
$wpvar = $wpvarstoreset[$i];
|
||||
if (!isset($$wpvar)) {
|
||||
if (empty($HTTP_POST_VARS[$wpvar])) {
|
||||
if (empty($HTTP_GET_VARS[$wpvar])) {
|
||||
$$wpvar = '';
|
||||
} else {
|
||||
$$b2var = $HTTP_GET_VARS[$b2var];
|
||||
$$wpvar = $HTTP_GET_VARS[$wpvar];
|
||||
}
|
||||
} else {
|
||||
$$b2var = $HTTP_POST_VARS[$b2var];
|
||||
$$wpvar = $HTTP_POST_VARS[$wpvar];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user