[wp-trac] [WordPress Trac] #40922: Use finer-grained capabilities with `customize_changeset` post type

WordPress Trac noreply at wordpress.org
Fri Sep 15 17:33:44 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 needs-unit-tests  |     Focuses:
----------------------------------------+------------------

Comment (by westonruter):

 I just found another case where the `edit_post` meta cap needs to map
 correctly for changeset posts in the area of working with autosaves, as
 calling `wp_create_post_autosave()` will in turn call
 `_wp_translate_postdata()` which then does a bare `edit_post` meta cap
 check and it needs to map to the primitive to work: https://github.com/xwp
 /wordpress-develop/pull/256/commits/dcf300b

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40922#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list