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

    r4059 r4082  
    4646    $title = __('Edit');
    4747    $editing = true;
     48    $post_ID = $p = (int) $_GET['post'];
     49    $post = get_post($post_ID);
     50    if($post->post_status == 'draft') {
     51        wp_enqueue_script('prototype');
     52        wp_enqueue_script('autosave');
     53    }
    4854    require_once('admin-header.php');
    4955
    50     $post_ID = $p = (int) $_GET['post'];
    51 
    52     $post = get_post($post_ID);
    5356    if ( !current_user_can('edit_post', $post_ID) )
    5457        die ( __('You are not allowed to edit this post.') );
Note: See TracChangeset for help on using the changeset viewer.