WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2016 03:52:18 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy.

Props ramiy, SergeyBiryukov.
Fixes #38808.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    r39266 r39278  
    547547
    548548        if ( ! current_user_can( 'delete_term', $term->term_id ) ) {
    549             return new WP_Error( 'rest_cannot_delete', __( 'Sorry, you are not allowed to delete resource.' ), array( 'status' => rest_authorization_required_code() ) );
     549            return new WP_Error( 'rest_cannot_delete', __( 'Sorry, you are not allowed to delete this resource.' ), array( 'status' => rest_authorization_required_code() ) );
    550550        }
    551551
     
    824824                ),
    825825                'link'        => array(
    826                     'description'  => __( 'URL to the resource.' ),
     826                    'description'  => __( 'URL of the resource.' ),
    827827                    'type'         => 'string',
    828828                    'format'       => 'uri',
Note: See TracChangeset for help on using the changeset viewer.