Author role should have "Stick this post to the front page" hidden
|Reported by:||linuxologos||Owned by:||nacin|
Currently, making a post sticky depends on the "edit_others_posts" capability. The Author role does not have this by default.
Log in with an Author account.
Go to Add New/Edit Post screen > Publish meta box > Visibility.
Check the "Stick this post to the front page" option.
Click Publish/Update. Visibility is set back to "Public" (not Sticky).
This is the intended behavior, so "Stick this post to the front page" should be hidden from Authors. The related code must be at /wp-admin/includes/meta-boxes.php#L142.
Quick Edit works fine, since it does check for the edit_others_posts cap in /wp-admin/includes/class-wp-posts-list-table.php#L957.
Discovered in WP 3.1, but I think the related piece of code lies there since 2.9.
Change History (5)
- Milestone changed from Awaiting Review to 3.2
- Owner set to nacin
- Status changed from new to accepted