You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
returnnewWP_Error( 'rest_comment_invalid_post_id', __( 'Sorry, you cannot create this comment without a post' ), array( 'status' => rest_authorization_required_code() ) );
299
+
returnnewWP_Error( 'rest_comment_invalid_post_id', __( 'Sorry, you cannot create this comment without a post.' ), array( 'status' => rest_authorization_required_code() ) );
returnnewWP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit these posts in this post type' ), array( 'status' => rest_authorization_required_code() ) );
80
+
returnnewWP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit these posts in this post type.' ), array( 'status' => rest_authorization_required_code() ) );
81
81
}
82
82
83
83
returntrue;
@@ -271,7 +271,7 @@ public function get_item_permissions_check( $request ) {
returnnewWP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit this post' ), array( 'status' => rest_authorization_required_code() ) );
274
+
returnnewWP_Error( 'rest_forbidden_context', __( 'Sorry, you are not allowed to edit this post.' ), array( 'status' => rest_authorization_required_code() ) );
if ( ! current_user_can( $post_type->cap->publish_posts ) ) {
951
-
returnnewWP_Error( 'rest_cannot_publish', __( 'Sorry, you are not allowed to create private posts in this post type' ), array( 'status' => rest_authorization_required_code() ) );
951
+
returnnewWP_Error( 'rest_cannot_publish', __( 'Sorry, you are not allowed to create private posts in this post type.' ), array( 'status' => rest_authorization_required_code() ) );
952
952
}
953
953
break;
954
954
case'publish':
955
955
case'future':
956
956
if ( ! current_user_can( $post_type->cap->publish_posts ) ) {
957
-
returnnewWP_Error( 'rest_cannot_publish', __( 'Sorry, you are not allowed to publish posts in this post type' ), array( 'status' => rest_authorization_required_code() ) );
957
+
returnnewWP_Error( 'rest_cannot_publish', __( 'Sorry, you are not allowed to publish posts in this post type.' ), array( 'status' => rest_authorization_required_code() ) );
958
958
}
959
959
break;
960
960
default:
@@ -1917,6 +1917,6 @@ public function validate_user_can_query_private_statuses( $value, $request, $par
1917
1917
if ( current_user_can( $post_type_obj->cap->edit_posts ) ) {
0 commit comments