WordPress.org

Make WordPress Core

Ticket #33644: 33644.patch

File 33644.patch, 978 bytes (added by pavelevap, 6 years ago)
  • src/wp-includes/class-wp-xmlrpc-server.php

     
    15771577                        return new IXR_Error( 404, __( 'Invalid post ID.' ) );
    15781578
    15791579                if ( ! current_user_can( 'delete_post', $post_id ) )
    1580                         return new IXR_Error( 401, __( 'Sorry, you are not allowed to delete this post.' ) );
     1580                        return new IXR_Error( 401, __( 'Sorry, you do not have the right to delete this post.' ) );
    15811581
    15821582                $result = wp_delete_post( $post_id );
    15831583
     
    46404640                $result = wp_delete_post($post_ID);
    46414641
    46424642                if ( !$result )
    4643                         return new IXR_Error(500, __('For some strange yet very annoying reason, this post could not be deleted.'));
     4643                        return new IXR_Error( 500, __( 'The post cannot be deleted.' ) );
    46444644
    46454645                /**
    46464646                 * Fires after a post has been successfully deleted via the XML-RPC Blogger API.