WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/14/2015 11:01:04 PM (6 years ago)
Author:
ocean90
Message:

XMLRPC: Don't allow private posts to be sticky.

Merge of [33325], [33612], and [34135] to the 3.9 branch.

See #20662.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9/src/wp-admin/includes/ajax-actions.php

    r28164 r34155  
    13241324        $data['parent_id'] = $data['post_parent'];
    13251325
    1326     // status
    1327     if ( isset($data['keep_private']) && 'private' == $data['keep_private'] )
     1326    // Status.
     1327    if ( isset( $data['keep_private'] ) && 'private' == $data['keep_private'] ) {
     1328        $data['visibility']  = 'private';
    13281329        $data['post_status'] = 'private';
    1329     else
     1330    } else {
    13301331        $data['post_status'] = $data['_status'];
     1332    }
    13311333
    13321334    if ( empty($data['comment_status']) )
Note: See TracChangeset for help on using the changeset viewer.