Make WordPress Core


Ignore:
Timestamp:
10/19/2004 03:03:06 AM (20 years ago)
Author:
rboren
Message:

Split admin-header.php into admin.php and admin-header.php. Split menu.php into menu-header.php and menu.php. Add plugin admin page support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-edit.php

    r1520 r1818  
    11<?php
    2 require_once('../wp-includes/wp-l10n.php');
     2require_once('admin.php');
    33
    44$title = __('Edit User');
    55
    6 function add_magic_quotes($array) {
    7   foreach ($array as $k => $v) {
    8     if (is_array($v)) {
    9       $array[$k] = add_magic_quotes($v);
    10     } else {
    11       $array[$k] = addslashes($v);
    12     }
    13   }
    14   return $array;
    15 }
    16 
    17 if (!get_magic_quotes_gpc()) {
    18     $_POST   = add_magic_quotes($_POST);
    19 }
    20 
    21 $wpvarstoreset = array('action', 'standalone', 'redirect', 'profile', 'user_id');
     6$wpvarstoreset = array('action', 'redirect', 'profile', 'user_id');
    227for ($i=0; $i<count($wpvarstoreset); $i += 1) {
    238    $wpvar = $wpvarstoreset[$i];
     
    8469case 'switchposts':
    8570
    86 $standalone = 1;
    87 require_once('admin-header.php');
    88 
    8971check_admin_referer();
    9072
     
    9577default:
    9678   
    97 $standalone = 0;
    9879include ('admin-header.php');
    9980
Note: See TracChangeset for help on using the changeset viewer.