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 c3e22fd
Browse filesBrowse the repository at this point in the historyBrowse files
Security: Backport the WordPress 7.1.3 security fixes to the 4.7 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 4.7 branch.
Props xknown, jeremyfelt, jorbin, peterwilsoncc, ehtis, westonruter, lancewillett, jonsurrell, marcs0h, rfaile313, johnbillion, vortfu.
git-svn-id: https://develop.svn.wordpress.org/branches/4.7@64183 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
@@ -548,7 +548,7 @@ public function create_item_permissions_check( $request ) {
548
548
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() ) );
553
553
}
554
554
@@ -692,7 +692,7 @@ public function update_item_permissions_check( $request ) {
692
692
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