[wp-trac] [WordPress Trac] #24153: Sticky flag gets unset if author doesn't have publish_posts permission
WordPress Trac
noreply at wordpress.org
Mon Apr 22 05:03:20 UTC 2013
#24153: Sticky flag gets unset if author doesn't have publish_posts permission
-----------------------------+-----------------------------
Reporter: archon810 | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Role/Capability
Version: 3.5.1 | Severity: major
Keywords: |
-----------------------------+-----------------------------
I'm observing a bug with the sticky flag. I set up a special user with a
role of "Grammar Nazi" who should only have access to editing of other
people's posts, but not publishing his own.
The permissions given to this role are:
- edit_published_posts
- edit_others_posts
- edit_posts
- read
- read_private_posts
This user works out great - he's limited to only editing errors in other
authors' posts.
However, there is a bug with sticky posts. If a grammar nazi edits a
stickied post, '''the sticky flag gets unset'''. As a possibly related
observation, there's no Edit button on the post edit page next to the
Visibility area.
This bug is worked around by adding the ''publish_posts'' permission.
However, this permission is unwanted in this case as grammar nazis
shouldn't be able to post their own posts. Adding ''publish_posts''
enables the Edit button next to Visibility, and saves retain the sticky
bit correctly.
So, in short: the sticky bit should be retained even when users without
the ''publish_posts'' permission update a post.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24153>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list