Changeset 34135
- Timestamp:
- 09/14/2015 10:37:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r33891 r34135 5233 5233 $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] : null; 5234 5234 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' ) ) { 5237 5237 return new IXR_Error( 401, __( 'Sorry, you do not have the right to publish this page.' ) ); 5238 5238 } elseif ( ! current_user_can( 'publish_posts' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.