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

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

See #38857.

git-svn-id: https://develop.svn.wordpress.org/trunk@47166 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-02-02 05:39:29 +00:00
parent 4e6674c48c
commit 78029013d8

View File

@ -408,7 +408,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
&& ! current_user_can( $taxonomy_obj->cap->assign_terms ) ) ) {
return new WP_Error(
'rest_cannot_create',
__( 'Sorry, you are not allowed to create new terms.' ),
__( 'Sorry, you are not allowed to create terms in this taxonomy.' ),
array( 'status' => rest_authorization_required_code() )
);
}