Ticket #3020: post.php.diff
File post.php.diff, 642 bytes (added by , 18 years ago) |
---|
-
wp-admin/post.php
45 45 case 'edit': 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.') ); 55 58