Make WordPress Core

Changeset 34151 for branches/4.3


Ignore:
Timestamp:
09/14/2015 10:49:39 PM (9 years ago)
Author:
ocean90
Message:

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

Merge of [34135] to the 4.3 branch.

See #20662.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3/src/wp-includes/class-wp-xmlrpc-server.php

    r33612 r34151  
    52355235        $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] : null;
    52365236
    5237         if ( ('publish' == $post_status) ) {
    5238             if ( ( 'page' == $post_type ) && ! current_user_can( 'publish_pages' ) ) {
     5237        if ( 'publish' == $post_status || 'private' == $post_status ) {
     5238            if ( 'page' == $post_type && ! current_user_can( 'publish_pages' ) ) {
    52395239                return new IXR_Error( 401, __( 'Sorry, you do not have the right to publish this page.' ) );
    52405240            } elseif ( ! current_user_can( 'publish_posts' ) ) {
Note: See TracChangeset for help on using the changeset viewer.