[wp-trac] [WordPress Trac] #39725: Post Type Capabilities Broken
WordPress Trac
noreply at wordpress.org
Sat Apr 22 12:14:19 UTC 2017
#39725: Post Type Capabilities Broken
-------------------------------+------------------------------
Reporter: michael.ecklund | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.7.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback
* focuses: ui, administration =>
Comment:
@lukecavanagh Your patch simply treats the symptom instead of the cause of
the problem. Raising a notice here is desired behaviour when a meta
capability such as `edit_post` is checked without passing a contextual
parameter (the post ID).
@michael.ecklund Would you be so kind as to post the complete code you're
using please? There may be something else in the capabilities array that I
missed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39725#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list