Make WordPress Core


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

Renaming Reloaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import-greymatter.php

    r617 r628  
    66
    77require_once('wp-config.php');
    8 require_once($abspath.$b2inc.'/functions.php');
    9 
    10 $b2varstoreset = array('action', 'gmpath', 'archivespath');
    11 for ($i=0; $i<count($b2varstoreset); $i += 1) {
    12     $b2var = $b2varstoreset[$i];
    13     if (!isset($$b2var)) {
    14         if (empty($HTTP_POST_VARS["$b2var"])) {
    15             if (empty($HTTP_GET_VARS["$b2var"])) {
    16                 $$b2var = '';
     8require_once(ABSPATH.WPINC.'/functions.php');
     9
     10$wpvarstoreset = array('action', 'gmpath', 'archivespath');
     11for ($i=0; $i<count($wpvarstoreset); $i += 1) {
     12    $wpvar = $wpvarstoreset[$i];
     13    if (!isset($$wpvar)) {
     14        if (empty($HTTP_POST_VARS["$wpvar"])) {
     15            if (empty($HTTP_GET_VARS["$wpvar"])) {
     16                $$wpvar = '';
    1717            } else {
    18                 $$b2var = $HTTP_GET_VARS["$b2var"];
     18                $$wpvar = $HTTP_GET_VARS["$wpvar"];
    1919            }
    2020        } else {
    21             $$b2var = $HTTP_POST_VARS["$b2var"];
     21            $$wpvar = $HTTP_POST_VARS["$wpvar"];
    2222        }
    2323    }
Note: See TracChangeset for help on using the changeset viewer.