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-admin/profile.php

    r617 r628  
    1919}
    2020
    21 $b2varstoreset = array('action','standalone','redirect','profile','user');
    22 for ($i=0; $i<count($b2varstoreset); $i += 1) {
    23         $b2var = $b2varstoreset[$i];
    24         if (!isset($$b2var)) {
    25                 if (empty($HTTP_POST_VARS["$b2var"])) {
    26                         if (empty($HTTP_GET_VARS["$b2var"])) {
    27                                 $$b2var = '';
     21$wpvarstoreset = array('action','standalone','redirect','profile','user');
     22for ($i=0; $i<count($wpvarstoreset); $i += 1) {
     23        $wpvar = $wpvarstoreset[$i];
     24        if (!isset($$wpvar)) {
     25                if (empty($HTTP_POST_VARS["$wpvar"])) {
     26                        if (empty($HTTP_GET_VARS["$wpvar"])) {
     27                                $$wpvar = '';
    2828                        } else {
    29                                 $$b2var = $HTTP_GET_VARS["$b2var"];
     29                                $$wpvar = $HTTP_GET_VARS["$wpvar"];
    3030                        }
    3131                } else {
    32                         $$b2var = $HTTP_POST_VARS["$b2var"];
     32                        $$wpvar = $HTTP_POST_VARS["$wpvar"];
    3333                }
    3434        }
    … …  
    3636
    3737require_once('../wp-config.php');
    38 require_once($abspath.$b2inc.'/functions.php');
     38require_once(ABSPATH.WPINC.'/functions.php');
    3939
    4040switch($action) {
Note: See TracChangeset for help on using the changeset viewer.