Make WordPress Core


Ignore:
Timestamp:
11/15/2016 08:36:27 PM (7 years ago)
Author:
SergeyBiryukov
Message:

REST API: Unify permission error messages.

Props ramiy.
See #38791, #34521.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

    r39245 r39251  
    178178                'rest_cannot_delete',
    179179                /* translators: %s: custom field key */
    180                 sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ),
     180                sprintf( __( 'Sorry, you are not allowed to edit the %s custom field.' ), $name ),
    181181                array( 'key' => $name, 'status' => rest_authorization_required_code() )
    182182            );
     
    213213                'rest_cannot_update',
    214214                /* translators: %s: custom field key */
    215                 sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ),
     215                sprintf( __( 'Sorry, you are not allowed to edit the %s custom field.' ), $name ),
    216216                array( 'key' => $name, 'status' => rest_authorization_required_code() )
    217217            );
     
    284284                'rest_cannot_update',
    285285                /* translators: %s: custom field key */
    286                 sprintf( __( 'You do not have permission to edit the %s custom field.' ), $name ),
     286                sprintf( __( 'Sorry, you are not allowed to edit the %s custom field.' ), $name ),
    287287                array( 'key' => $name, 'status' => rest_authorization_required_code() )
    288288            );
Note: See TracChangeset for help on using the changeset viewer.