WordPress.org

Make WordPress Core

Changeset 26959 for trunk


Ignore:
Timestamp:
01/16/2014 08:23:21 PM (6 years ago)
Author:
nacin
Message:

Don't let Quick Draft ignore default comment_status and ping_status.

props kovshenin.
fixes #26722.

File:
1 edited

Legend:

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

    r26399 r26959  
    118118    $post = get_post( $_REQUEST['post_ID'] );
    119119    check_admin_referer( 'add-' . $post->post_type );
     120
     121    $_POST['comment_status'] = get_option( 'default_comment_status' );
     122    $_POST['ping_status'] = get_option( 'default_ping_status' );
     123
    120124    edit_post();
    121125    // output the quickdraft dashboard widget
Note: See TracChangeset for help on using the changeset viewer.