Make WordPress Core


Ignore:
Timestamp:
08/11/2006 03:54:45 AM (18 years ago)
Author:
ryan
Message:

Autosave and prototype. Props masquerade. fixes #3020 #3017

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/page.php

    r3985 r4082  
    4343    $title = __('Edit');
    4444    $editing = true;
     45    $page_ID = $post_ID = $p = (int) $_GET['post'];
     46    $post = get_post_to_edit($page_ID);
     47    if($post->post_status == 'draft') {
     48        wp_enqueue_script('prototype');
     49        wp_enqueue_script('autosave');
     50    }
    4551    require_once('admin-header.php');
    46 
    47     $page_ID = $post_ID = $p = (int) $_GET['post'];
    4852
    4953    if ( !current_user_can('edit_page', $page_ID) )
    5054        die ( __('You are not allowed to edit this page.') );
    51 
    52     $post = get_post_to_edit($page_ID);
    5355
    5456    include('edit-page-form.php');
Note: See TracChangeset for help on using the changeset viewer.