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

    r1599 r1818  
    22// Links
    33// Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com
    4 require_once('../wp-includes/wp-l10n.php');
     4require_once('admin.php');
    55$title = __('Link Categories');
    66$this_file='link-categories.php';
    77$parent_file = 'link-manager.php';
    88
    9 $wpvarstoreset = array('action','standalone','cat', 'auto_toggle');
     9$wpvarstoreset = array('action', 'cat', 'auto_toggle');
    1010for ($i=0; $i<count($wpvarstoreset); $i += 1) {
    1111    $wpvar = $wpvarstoreset[$i];
     
    2626  case 'addcat':
    2727  {
    28       $standalone = 1;
    29       include_once('admin-header.php');
    30 
    3128      if ($user_level < 5)
    3229          die (__("Cheatin' uh ?"));
     
    8380  case 'Delete':
    8481  {
    85     $standalone = 1;
    86     include_once('admin-header.php');
    87 
    8882    $cat_id = $_GET['cat_id'];
    8983    $cat_name=get_linkcatname($cat_id);
     
    205199  case "editedcat":
    206200  {
    207     $standalone = 1;
    208     include_once("./admin-header.php");
    209 
    210201    if ($user_level < 5)
    211202      die (__("Cheatin' uh ?"));
     
    279270  default:
    280271  {
    281     $standalone=0;
    282     include_once ("./admin-header.php");
     272    include_once ("admin-header.php");
    283273    if ($user_level < 5) {
    284274      die(__("You have do not have sufficient permissions to edit the link categories for this blog. :)"));
Note: See TracChangeset for help on using the changeset viewer.