Ticket #12859: 12859.diff
File 12859.diff, 496 bytes (added by , 15 years ago) |
---|
-
wp-admin/includes/post.php
1279 1279 function post_preview() { 1280 1280 1281 1281 $post_ID = (int) $_POST['post_ID']; 1282 if ( $post_ID < 1 ) 1282 $status = get_post_status( $post_ID ); 1283 if ( 'auto-draft' == $status ) 1283 1284 wp_die( __('Preview not available. Please save as a draft first.') ); 1284 1285 1285 1286 if ( isset($_POST['catslist']) )