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

    r1813 r1818  
    11<?php
    2 require_once('../wp-includes/wp-l10n.php');
    3 
    4 function add_magic_quotes($array) {
    5 foreach ($array as $k => $v) {
    6     if (is_array($v)) {
    7         $array[$k] = add_magic_quotes($v);
    8     } else {
    9         $array[$k] = addslashes($v);
    10     }
    11 }
    12 return $array;
    13 }
    14 
    15 if (!get_magic_quotes_gpc()) {
    16     $_GET    = add_magic_quotes($_GET);
    17     $_POST   = add_magic_quotes($_POST);
    18     $_COOKIE = add_magic_quotes($_COOKIE);
    19 }
     2require_once('admin.php');
    203
    214$wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder', 'enclosure_url' );
     
    3821switch($action) {
    3922case 'post':
    40     $standalone = 1;
    4123    require_once('admin-header.php');
    4224
     
    184166    $title = __('Edit');
    185167
    186     $standalone = 0;
    187168    require_once('admin-header.php');
    188169
     
    237218case 'editpost':
    238219// die(var_dump('<pre>', $_POST));
    239     $standalone = 1;
    240     require_once('./admin-header.php');
    241 
    242220    if (!isset($blog_ID)) {
    243221        $blog_ID = 1;
     
    399377
    400378case 'delete':
    401 
    402     $standalone = 1;
    403     require_once('./admin-header.php');
    404 
    405379    check_admin_referer();
    406380
     
    429403case 'editcomment':
    430404    $title = __('Edit Comment');
    431     $standalone = 0;
    432405    $parent_file = 'edit.php';
    433406    require_once ('admin-header.php');
     
    452425case 'confirmdeletecomment':
    453426
    454 $standalone = 0;
    455427require_once('./admin-header.php');
    456428
     
    488460case 'deletecomment':
    489461
    490 $standalone = 1;
    491 require_once('./admin-header.php');
    492 
    493462check_admin_referer();
    494463
     
    521490case 'unapprovecomment':
    522491
    523 $standalone = 1;
    524492require_once('./admin-header.php');
    525493
     
    552520case 'mailapprovecomment':
    553521
    554 $standalone = 1;
    555 require_once('./admin-header.php');
    556 
    557522$comment = (int) $_GET['comment'];
    558523
     
    574539
    575540case 'approvecomment':
    576 
    577 $standalone = 1;
    578 require_once('./admin-header.php');
    579541
    580542$comment = $_GET['comment'];
     
    606568
    607569case 'editedcomment':
    608 
    609     $standalone = 1;
    610     require_once('./admin-header.php');
    611570
    612571    $comment_ID = $_POST['comment_ID'];
     
    654613
    655614default:
    656     $standalone = 0;
    657615    $title = __('Create New Post');
    658616    require_once ('./admin-header.php');
Note: See TracChangeset for help on using the changeset viewer.