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

    r1810 r1818  
    11<?php
    2 
    3 $parent_file = 'options-general.php';
    4 
    5 function add_magic_quotes($array) {
    6     foreach ($array as $k => $v) {
    7         if (is_array($v)) {
    8             $array[$k] = add_magic_quotes($v);
    9         } else {
    10             $array[$k] = addslashes($v);
    11         }
    12     }
    13     return $array;
    14 }
    15 
    16 if (!get_magic_quotes_gpc()) {
    17     $_GET    = add_magic_quotes($_GET);
    18     $_POST   = add_magic_quotes($_POST);
    19     $_COOKIE = add_magic_quotes($_COOKIE);
    20 }
    212
    223$wpvarstoreset = array('action','standalone', 'option_group_id');
     
    3516    }
    3617}
    37 
    38 $standalone = 0;
    39 include_once('admin-header.php');
    4018?>
    4119
    4220<br clear="all" />
    4321
    44 <?php if (isset($updated)) : ?>
     22<?php if (isset($_GET['updated'])) : ?>
    4523<div class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div>
    4624<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.