WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/19/2015 06:08:55 PM (6 years ago)
Author:
wonderboymusic
Message:

Ensure that private posts cannot be made sticky via Quick Edit.
DRY the logic for stickies in wp_xmlrpc_server by introducing ->_toggle_sticky().

Props wonderboymusic, obenland, chriscct7.
Fixes #20662.

File:
1 edited

Legend:

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

    r33280 r33325  
    15681568
    15691569    // Status.
    1570     if ( isset($data['keep_private']) && 'private' == $data['keep_private'] )
     1570    if ( isset( $data['keep_private'] ) && 'private' == $data['keep_private'] ) {
     1571        $data['visibility']  = 'private';
    15711572        $data['post_status'] = 'private';
    1572     else
     1573    } else {
    15731574        $data['post_status'] = $data['_status'];
     1575    }
    15741576
    15751577    if ( empty($data['comment_status']) )
Note: See TracChangeset for help on using the changeset viewer.