Changeset 4082 for trunk/wp-admin/post.php
- Timestamp:
- 08/11/2006 03:54:45 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r4059 r4082 46 46 $title = __('Edit'); 47 47 $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 } 48 54 require_once('admin-header.php'); 49 55 50 $post_ID = $p = (int) $_GET['post'];51 52 $post = get_post($post_ID);53 56 if ( !current_user_can('edit_post', $post_ID) ) 54 57 die ( __('You are not allowed to edit this post.') );
Note: See TracChangeset
for help on using the changeset viewer.