WordPress.org

Make WordPress Core

Ticket #34521: 34521-you-can-not-----you are not allowed.patch

File 34521-you-can-not-----you are not allowed.patch, 673 bytes (added by ramiy, 5 years ago)

"Sorry, you can not" --> "Sorry, you are not allowed"

  • wp-includes/class-wp-xmlrpc-server.php

     
    59955995                        return new IXR_Error( 404, __( 'Invalid post ID.' ) );
    59965996
    59975997                if ( !current_user_can( 'edit_post', $post_ID ) )
    5998                         return new IXR_Error( 401, __( 'Sorry, you can not edit this post.' ) );
     5998                        return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post.' ) );
    59995999
    60006000                /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
    60016001                do_action( 'xmlrpc_call', 'mt.getPostCategories' );