Make WordPress Core

Ticket #12859: 12859.diff

File 12859.diff, 496 bytes (added by duck_, 15 years ago)
  • wp-admin/includes/post.php

     
    12791279function post_preview() {
    12801280
    12811281        $post_ID = (int) $_POST['post_ID'];
    1282         if ( $post_ID < 1 )
     1282        $status = get_post_status( $post_ID );
     1283        if ( 'auto-draft' == $status )
    12831284                wp_die( __('Preview not available. Please save as a draft first.') );
    12841285
    12851286        if ( isset($_POST['catslist']) )