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
Copy file name to clipboardExpand all lines: src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
+3-3
Original file line number
Diff line number
Diff line change
@@ -498,7 +498,7 @@ public function create_item_permissions_check( $request ) {
498
498
returnnewWP_Error( 'rest_cannot_edit_others', __( 'Sorry, you are not allowed to create posts as this user.' ), array( 'status' => rest_authorization_required_code() ) );
returnnewWP_Error( 'rest_cannot_assign_sticky', __( 'Sorry, you are not allowed to make posts sticky.' ), array( 'status' => rest_authorization_required_code() ) );
503
503
}
504
504
@@ -653,7 +653,7 @@ public function update_item_permissions_check( $request ) {
653
653
returnnewWP_Error( 'rest_cannot_edit_others', __( 'Sorry, you are not allowed to update posts as this user.' ), array( 'status' => rest_authorization_required_code() ) );
returnnewWP_Error( 'rest_cannot_assign_sticky', __( 'Sorry, you are not allowed to make posts sticky.' ), array( 'status' => rest_authorization_required_code() ) );
0 commit comments