Changeset 628 for trunk/wp-blog-header.php
- Timestamp:
- 12/18/2003 09:36:13 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-blog-header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-blog-header.php
r601 r628 12 12 require_once ($curpath.'/wp-config.php'); 13 13 14 $ 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');15 16 for ($i=0; $i<count($ b2varstoreset); $i += 1) {17 $ b2var = $b2varstoreset[$i];18 if (!isset($$ b2var)) {19 if (empty($HTTP_POST_VARS[$ b2var])) {20 if (empty($HTTP_GET_VARS[$ b2var])) {21 $$ b2var = '';14 $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'); 15 16 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 17 $wpvar = $wpvarstoreset[$i]; 18 if (!isset($$wpvar)) { 19 if (empty($HTTP_POST_VARS[$wpvar])) { 20 if (empty($HTTP_GET_VARS[$wpvar])) { 21 $$wpvar = ''; 22 22 } else { 23 $$ b2var = $HTTP_GET_VARS[$b2var];23 $$wpvar = $HTTP_GET_VARS[$wpvar]; 24 24 } 25 25 } else { 26 $$ b2var = $HTTP_POST_VARS[$b2var];26 $$wpvar = $HTTP_POST_VARS[$wpvar]; 27 27 } 28 28 }
Note: See TracChangeset
for help on using the changeset viewer.