Ticket #21087: similar_strings.patch
| File similar_strings.patch, 1.9 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/post.php
62 62 } else { 63 63 return new WP_Error( 'edit_others_posts', $update ? 64 64 __( 'You are not allowed to edit posts as this user.' ) : 65 __( 'You are not allowed to postas this user.' )65 __( 'You are not allowed to create posts as this user.' ) 66 66 ); 67 67 } 68 68 } -
wp-includes/class-wp-xmlrpc-server.php
3726 3726 $post_author = $user->ID; 3727 3727 3728 3728 // If an author id was provided then use it instead. 3729 if ( isset( $content_struct['wp_author_id']) && ($user->ID != $content_struct['wp_author_id']) ) {3729 if ( isset( $content_struct['wp_author_id'] ) && ( $user->ID != $content_struct['wp_author_id'] ) ) { 3730 3730 switch ( $post_type ) { 3731 3731 case "post": 3732 if ( !current_user_can( 'edit_others_posts') )3733 return( new IXR_Error(401, __('You are not allowed to post as this user')));3732 if ( !current_user_can( 'edit_others_posts' ) ) 3733 return( new IXR_Error( 401, __( 'You are not allowed to create posts as this user.' ) ) ); 3734 3734 break; 3735 3735 case "page": 3736 if ( !current_user_can( 'edit_others_pages') )3737 return( new IXR_Error(401, __('You are not allowed to create pages as this user')));3736 if ( !current_user_can( 'edit_others_pages' ) ) 3737 return( new IXR_Error( 401, __( 'You are not allowed to create pages as this user.' ) ) ); 3738 3738 break; 3739 3739 default: 3740 return( new IXR_Error(401, __('Invalid post type')));3740 return( new IXR_Error( 401, __( 'Invalid post type' ) ) ); 3741 3741 break; 3742 3742 } 3743 3743 $author = get_userdata( $content_struct['wp_author_id'] );