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

    r1551 r1818  
    11<?php
    2 require_once('../wp-includes/wp-l10n.php');
     2require_once('admin.php');
    33
    44$title = 'Add Link';
     
    2323}
    2424
    25 function add_magic_quotes($array) {
    26     foreach ($array as $k => $v) {
    27         if (is_array($v)) {
    28             $array[$k] = add_magic_quotes($v);
    29         } else {
    30             $array[$k] = addslashes($v);
    31         }
    32     }
    33     return $array;
    34 }
    35 if (!get_magic_quotes_gpc()) {
    36     $_GET    = add_magic_quotes($_GET);
    37     $_POST   = add_magic_quotes($_POST);
    38     $_COOKIE = add_magic_quotes($_COOKIE);
    39 }
    40 
    41 $wpvarstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image',
     25$wpvarstoreset = array('action', 'cat_id', 'linkurl', 'name', 'image',
    4226                       'description', 'visible', 'target', 'category', 'link_id',
    4327                       'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
Note: See TracChangeset for help on using the changeset viewer.