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:
parent
f51b4579d5
commit
e79f7f71aa
|
@ -408,7 +408,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||||
&& ! current_user_can( $taxonomy_obj->cap->assign_terms ) ) ) {
|
&& ! current_user_can( $taxonomy_obj->cap->assign_terms ) ) ) {
|
||||||
return new WP_Error(
|
return new WP_Error(
|
||||||
'rest_cannot_create',
|
'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() )
|
array( 'status' => rest_authorization_required_code() )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue