WordPress.org

Make WordPress Core

Changeset 8797


Ignore:
Timestamp:
09/03/2008 07:13:51 AM (13 years ago)
Author:
westi
Message:

Set comment and ping status when QuickPressing. Fixes #7672 props ShaneF.

File:
1 edited

Legend:

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

    r8780 r8797  
    8484
    8585    if ( 'post-quickpress-publish' == $action )
     86   
     87        $_POST['comment_status'] = get_option('default_comment_status');
     88        $_POST['ping_status'] = get_option('default_ping_status');
     89       
    8690        $_POST['publish'] = 'publish'; // tell write_post() to publish
    8791
Note: See TracChangeset for help on using the changeset viewer.