Ticket #18800: 18800.diff
File 18800.diff, 593 bytes (added by , 13 years ago) |
---|
-
wp-admin/post-new.php
36 36 wp_enqueue_script('autosave'); 37 37 38 38 // Show post form. 39 $post = get_default_post_to_edit( $post_type, true ); 39 $posts = get_posts(array('numberposts' => 1, 'post_status' => 'auto-draft')); 40 if ( empty($posts) ) { 41 $post = get_default_post_to_edit( $post_type, true ); 42 } else { 43 $post = $posts[0]; 44 } 40 45 $post_ID = $post->ID; 41 46 include('edit-form-advanced.php'); 42 47 include('./admin-footer.php');