diff --git src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php
index e2cce55b65..2d3885971b 100644
|
|
class WP_REST_Post_Statuses_Controller extends WP_REST_Controller { |
81 | 81 | return true; |
82 | 82 | } |
83 | 83 | } |
84 | | return new WP_Error( 'rest_cannot_view', __( 'Sorry, you are not allowed to edit posts in this post type.' ), array( 'status' => rest_authorization_required_code() ) ); |
| 84 | return new WP_Error( 'rest_cannot_view', __( 'Sorry, you are not allowed to manage post statuses.' ), array( 'status' => rest_authorization_required_code() ) ); |
85 | 85 | } |
86 | 86 | |
87 | 87 | return true; |