[wp-trac] [WordPress Trac] #16947: Author role should have "Stick this post to the front page" hidden

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 23 10:21:47 UTC 2011


#16947: Author role should have "Stick this post to the front page" hidden
--------------------------+-----------------------------
 Reporter:  linuxologos   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  2.9
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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
 [http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/meta-
 boxes.php#L142 /wp-admin/includes/meta-boxes.php#L142].

 Quick Edit works fine, since it does check for the edit_others_posts cap
 in [http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes
 /class-wp-posts-list-table.php#L957 /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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16947>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list