Make WordPress Core


Ignore:
Timestamp:
09/06/2008 05:16:56 AM (16 years ago)
Author:
azaozz
Message:

Fix saving as draft, see #7672

File:
1 edited

Legend:

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

    r8830 r8832  
    8888
    8989    if ( 'post-quickpress-publish' == $action )
    90    
     90        $_POST['publish'] = 'publish'; // tell write_post() to publish
     91
     92    if ( 'post-quickpress-publish' == $action || 'post-quickpress-save' == $action ) {
    9193        $_POST['comment_status'] = get_option('default_comment_status');
    9294        $_POST['ping_status'] = get_option('default_ping_status');
    93        
    94         $_POST['publish'] = 'publish'; // tell write_post() to publish
     95    }
    9596
    9697    if ( !empty( $_POST['quickpress_post_ID'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.