Make WordPress Core

Ticket #33644: 33644.1.patch

File 33644.1.patch, 607 bytes (added by Ankit K Gupta, 6 years ago)

Updated patch file

  • 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