Changeset 39278 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 11/17/2016 03:52:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r39045 r39278 1271 1271 } elseif ( isset( $post_data['sticky'] ) ) { 1272 1272 if ( ! current_user_can( $post_type->cap->edit_others_posts ) ) { 1273 return new IXR_Error( 401, __( 'Sorry, you are not allowed to stick this post.' ) );1273 return new IXR_Error( 401, __( 'Sorry, you are not allowed to make posts sticky.' ) ); 1274 1274 } 1275 1275 … … 1796 1796 1797 1797 if ( ! current_user_can( $post_type->cap->edit_posts ) ) 1798 return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type.' ) );1798 return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type.' ) ); 1799 1799 1800 1800 $query['post_type'] = $post_type->name; … … 4118 4118 4119 4119 if ( ! current_user_can( $post_type->cap->edit_posts ) ) 4120 return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post type.' ) );4120 return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type.' ) ); 4121 4121 4122 4122 return $this->_prepare_post_type( $post_type, $fields );
Note: See TracChangeset
for help on using the changeset viewer.