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 }}
Repository navigation
Commit c0b5d80
Browse filesBrowse the repository at this point in the historyBrowse files
Security: Backport the WordPress 7.1.3 security fixes to the 5.3 branch.
- REST API: Require both capabilities to change a post's sticky status.
- Query: Prevent exposure of comments on unviewable posts.
- Posts, Post Types: Fire dynamic status transition hooks only for registered statuses and post types.
- Administration: Treat contextual help tab links as selectors.
- Embeds: Remove support for Imgur oEmbeds.
- HTTP: Improve relative path resolution in `WP_Http::make_absolute_url()`.
Merges r64127, r64128, r64130, r64131, r64132, r64133 to the 5.3 branch.
Props xknown, jeremyfelt, jorbin, peterwilsoncc, ehtis, westonruter, lancewillett, jonsurrell, marcs0h, rfaile313, johnbillion, vortfu.
git-svn-id: https://develop.svn.wordpress.org/branches/5.3@64177 602fd350-edb4-49c9-b593-d223f7449a82
Copy file name to clipboardExpand all lines: src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -550,7 +550,7 @@ public function create_item_permissions_check( $request ) {
550
550
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() ) );
555
555
}
556
556
@@ -705,7 +705,7 @@ public function update_item_permissions_check( $request ) {
705
705
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