WordPress.org

Make WordPress Core

Changeset 26960


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

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

Merges [26959] to the 3.8 branch.

props kovshenin.
fixes #26722.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/src/wp-admin/post.php

    r26399 r26960  
    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.