[wp-trac] [WordPress Trac] #40922: Use finer-grained capabilities with `customize_changeset` post type
WordPress Trac
noreply at wordpress.org
Tue Jul 11 07:29:27 UTC 2017
#40922: Use finer-grained capabilities with `customize_changeset` post type
-------------------------+------------------
Reporter: dlh | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.9
Component: Customize | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------
Comment (by dlh):
While I'm not opposed to trying that approach, it seems like we would run
into the same issue you raised in comment:6, if I'm following. The
`user_has_cap` filter outlined in ticket:28605#comment:8 checks the
capability string passed to `current_user_can()`, and in the snippet,
wouldn't `$cap` be `edit_post` or similar, not `customize`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40922#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list