Make WordPress Core


Ignore:
Timestamp:
12/18/2003 09:36:13 AM (23 years ago)
Author:
saxmatt
Message:

Renaming Reloaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r601 r628  
    1212require_once ($curpath.'/wp-config.php');
    1313
    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 = '';
    2222                                } else {
    23                                         $$b2var = $HTTP_GET_VARS[$b2var];
     23                                        $$wpvar = $HTTP_GET_VARS[$wpvar];
    2424                                }
    2525                        } else {
    26                                 $$b2var = $HTTP_POST_VARS[$b2var];
     26                                $$wpvar = $HTTP_POST_VARS[$wpvar];
    2727                        }
    2828                }
Note: See TracChangeset for help on using the changeset viewer.