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-manager.php

    r1768 r1818  
    33// Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com
    44
    5 require_once('../wp-config.php');
     5require_once('admin.php');
    66
    77$title = __('Manage Links');
     
    3838}
    3939
    40 function add_magic_quotes($array) {
    41     foreach ($array as $k => $v) {
    42         if (is_array($v)) {
    43             $array[$k] = add_magic_quotes($v);
    44         } else {
    45             $array[$k] = addslashes($v);
    46         }
    47     }
    48     return $array;
    49 }
    50 if (!get_magic_quotes_gpc()) {
    51     $_GET    = add_magic_quotes($_GET);
    52     $_POST   = add_magic_quotes($_POST);
    53     $_COOKIE = add_magic_quotes($_COOKIE);
    54 }
    55 
    56 $wpvarstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image',
     40$wpvarstoreset = array('action','cat_id', 'linkurl', 'name', 'image',
    5741                       'description', 'visible', 'target', 'category', 'link_id',
    5842                       'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
     
    8468  case 'assign':
    8569  {
    86     $standalone = 1;
    87     include_once('admin-header.php');
    88 
    8970    check_admin_referer();
    9071
     
    11798  case 'visibility':
    11899  {
    119     $standalone = 1;
    120     include_once('admin-header.php');
    121 
    122100    check_admin_referer();
    123101
     
    157135  case 'move':
    158136  {
    159     $standalone = 1;
    160     include_once('admin-header.php');
    161 
    162137    check_admin_referer();
    163138
     
    181156  case 'Add':
    182157  {
    183     $standalone = 1;
    184     include_once('admin-header.php');
    185 
    186158    check_admin_referer();
    187159
     
    230202      }
    231203      $links_show_cat_id = $cat_id;
    232 
    233       $standalone = 1;
    234       include_once('admin-header.php');
    235204
    236205      check_admin_referer();
     
    277246  case 'Delete':
    278247  {
    279     $standalone = 1;
    280     include_once('admin-header.php');
    281 
    282248    check_admin_referer();
    283249
     
    304270  case 'linkedit':
    305271  {
    306     $standalone=0;
    307272    $xfn = true;
    308273    include_once ('admin-header.php');
     
    570535    setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600);
    571536    setcookie('links_show_order_' . COOKIEHASH, $links_show_order, time()+600);
    572     $standalone=0;
    573537    include_once ("./admin-header.php");
    574538    if ($user_level < 5) {
Note: See TracChangeset for help on using the changeset viewer.