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

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

See #38857.
Built from https://develop.svn.wordpress.org/trunk@47166


git-svn-id: http://core.svn.wordpress.org/trunk@46966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-02-02 05:41:03 +00:00
parent f51b4579d5
commit e79f7f71aa
2 changed files with 2 additions and 2 deletions

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() )
);
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-47165';
$wp_version = '5.4-alpha-47166';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.