WordPress.org

Make WordPress Core

Changeset 14643


Ignore:
Timestamp:
05/14/2010 06:30:43 PM (10 years ago)
Author:
ryan
Message:

Don't allow previewing auto-draft. Props duck_. fixes #12859

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r14633 r14643  
    12841284
    12851285    $post_ID = (int) $_POST['post_ID'];
    1286     if ( $post_ID < 1 )
     1286    $status = get_post_status( $post_ID );
     1287    if ( 'auto-draft' == $status )
    12871288        wp_die( __('Preview not available. Please save as a draft first.') );
    12881289
Note: See TracChangeset for help on using the changeset viewer.