Make WordPress Core


Ignore:
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.