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

    r1751 r1818  
    11<?php
    2 require_once('../wp-includes/wp-l10n.php');
     2require_once('admin.php');
    33
    44$title = __('Options');
     
    66$parent_file = 'options-general.php';
    77
    8 function add_magic_quotes($array) {
    9     foreach ($array as $k => $v) {
    10         if (is_array($v)) {
    11             $array[$k] = add_magic_quotes($v);
    12         } else {
    13             $array[$k] = addslashes($v);
    14         }
    15     }
    16     return $array;
    17 }
    18 
    19 if (!get_magic_quotes_gpc()) {
    20     $_GET    = add_magic_quotes($_GET);
    21     $_POST   = add_magic_quotes($_POST);
    22     $_COOKIE = add_magic_quotes($_COOKIE);
    23 }
    24 
    25 $wpvarstoreset = array('action','standalone');
     8$wpvarstoreset = array('action');
    269for ($i=0; $i<count($wpvarstoreset); $i += 1) {
    2710    $wpvar = $wpvarstoreset[$i];
     
    4225
    4326case 'update':
    44     $standalone = 1;
    45     include_once('./admin-header.php');
    4627    $any_changed = 0;
    4728   
     
    9273
    9374default:
    94     $standalone = 0;
    95     include_once('./admin-header.php');
    96     if ($user_level <= 6) {
    97         die(__("You have do not have sufficient permissions to edit the options for this blog."));
    98     }
    99 ?>
    100 
    101 <?php include('options-head.php'); ?>
     75    include('admin-header.php'); ?>
    10276
    10377<div class="wrap">
Note: See TracChangeset for help on using the changeset viewer.