Make WordPress Core

Changeset 34135


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

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

See #20662.

File:
1 edited

Legend:

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

    r33891 r34135  
    52335233        $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] : null;
    52345234
    5235         if ( ('publish' == $post_status) ) {
    5236             if ( ( 'page' == $post_type ) && ! current_user_can( 'publish_pages' ) ) {
     5235        if ( 'publish' == $post_status || 'private' == $post_status ) {
     5236            if ( 'page' == $post_type && ! current_user_can( 'publish_pages' ) ) {
    52375237                return new IXR_Error( 401, __( 'Sorry, you do not have the right to publish this page.' ) );
    52385238            } elseif ( ! current_user_can( 'publish_posts' ) ) {
Note: See TracChangeset for help on using the changeset viewer.