WordPress.org

Make WordPress Core

Changeset 47166


Ignore:
Timestamp:
02/02/2020 05:39:29 AM (20 months ago)
Author:
SergeyBiryukov
Message:

REST API: Merge "not allowed to create new terms" permission error message with an existing string.

Follow-up to [39309], [39313].

See #38857.

File:
1 edited

Legend:

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

    r47122 r47166  
    409409            return new WP_Error(
    410410                'rest_cannot_create',
    411                 __( 'Sorry, you are not allowed to create new terms.' ),
     411                __( 'Sorry, you are not allowed to create terms in this taxonomy.' ),
    412412                array( 'status' => rest_authorization_required_code() )
    413413            );
Note: See TracChangeset for help on using the changeset viewer.