[wp-trac] [WordPress Trac] #44399: Add unique capability for oembed
WordPress Trac
noreply at wordpress.org
Tue Jun 19 15:40:39 UTC 2018
#44399: Add unique capability for oembed
-------------------------------------------------+-------------------------
Reporter: jason_the_adams | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Embeds | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback needs-patch needs- | Focuses:
unit-tests |
-------------------------------------------------+-------------------------
Comment (by joyously):
Is this ticket reporting a problem with the capability check for embeds or
is it proposing a new capability? Or maybe both.
It seems to me that the existing capability check assumes a post context,
which your use case has a problem with. Would putting a filter on that
capability check work? Are there other places where embeds might be
wanted, but checking `edit_posts` wouldn't work? Like comments or custom
widgets?
Is it just embeds that has this problem? I've seen some other discussions
about other places where core checks for a capability that doesn't work in
all contexts. ''(I also have a use case for custom role with custom post
type created with a custom editor, and I don't want the user to
`edit_posts`. This seems likely to be common for sites with user-created
content.)''
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44399#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list