Make WordPress Core

Ticket #39017: 39017.patch

File 39017.patch, 748 bytes (added by ramiy, 9 years ago)
  • wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

     
    457457                }
    458458
    459459                if ( ! current_user_can( 'edit_term', $term->term_id ) ) {
    460                         return new WP_Error( 'rest_cannot_update', __( 'Sorry, you are not allowed to edit terms.' ), array( 'status' => rest_authorization_required_code() ) );
     460                        return new WP_Error( 'rest_cannot_update', __( 'Sorry, you are not allowed to edit this term.' ), array( 'status' => rest_authorization_required_code() ) );
    461461                }
    462462
    463463                return true;