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

    r1744 r1818  
    11<?php
    2 require_once('../wp-includes/wp-l10n.php');
     2require_once('admin.php');
    33
    44$title = __('Categories');
    55$parent_file = 'edit.php';
    66
    7 function add_magic_quotes($array) {
    8     foreach ($array as $k => $v) {
    9         if (is_array($v)) {
    10             $array[$k] = add_magic_quotes($v);
    11         } else {
    12             $array[$k] = addslashes($v);
    13         }
    14     }
    15     return $array;
    16 }
    17 
    18 if (!get_magic_quotes_gpc()) {
    19     $_GET    = add_magic_quotes($_GET);
    20     $_POST   = add_magic_quotes($_POST);
    21     $_COOKIE = add_magic_quotes($_COOKIE);
    22 }
    23 
    24 $wpvarstoreset = array('action','standalone','cat');
     7$wpvarstoreset = array('action','cat');
    258for ($i=0; $i<count($wpvarstoreset); $i += 1) {
    269    $wpvar = $wpvarstoreset[$i];
     
    4225case 'addcat':
    4326
    44     $standalone = 1;
    45     require_once('admin-header.php');
    46    
    4727    if ($user_level < 3)
    4828        die (__('Cheatin&#8217; uh?'));
     
    6141
    6242case 'Delete':
    63 
    64     $standalone = 1;
    65     require_once('admin-header.php');
    6643
    6744    check_admin_referer();
     
    12097case 'editedcat':
    12198
    122     $standalone = 1;
    123     require_once('admin-header.php');
    124 
    12599    if ($user_level < 3)
    126100        die (__('Cheatin&#8217; uh?'));
     
    139113default:
    140114
    141     $standalone = 0;
    142115    require_once ('admin-header.php');
    143116    if ($user_level < 3) {
Note: See TracChangeset for help on using the changeset viewer.