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/post.php

    r607 r628  
    1919}
    2020
    21 $b2varstoreset = array('action', 'safe_mode', 'withcomments', 'c', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder');
    22 
    23 for ($i=0; $i<count($b2varstoreset); $i += 1) {
    24     $b2var = $b2varstoreset[$i];
    25     if (!isset($$b2var)) {
    26         if (empty($HTTP_POST_VARS["$b2var"])) {
    27             if (empty($HTTP_GET_VARS["$b2var"])) {
    28                 $$b2var = '';
     21$wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'c', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder');
     22
     23for ($i=0; $i<count($wpvarstoreset); $i += 1) {
     24    $wpvar = $wpvarstoreset[$i];
     25    if (!isset($$wpvar)) {
     26        if (empty($HTTP_POST_VARS["$wpvar"])) {
     27            if (empty($HTTP_GET_VARS["$wpvar"])) {
     28                $$wpvar = '';
    2929            } else {
    30                 $$b2var = $HTTP_GET_VARS["$b2var"];
    31             }
    32         } else {
    33             $$b2var = $HTTP_POST_VARS["$b2var"];
     30                $$wpvar = $HTTP_GET_VARS["$wpvar"];
     31            }
     32        } else {
     33            $$wpvar = $HTTP_POST_VARS["$wpvar"];
    3434        }
    3535    }
Note: See TracChangeset for help on using the changeset viewer.