[wp-trac] [WordPress Trac] #54516: Full site editing/REST-API: modify permission checks to use post type.
WordPress Trac
noreply at wordpress.org
Tue Jun 28 10:16:10 UTC 2022
#54516: Full site editing/REST-API: modify permission checks to use post type.
----------------------------+---------------------------
Reporter: peterwilsoncc | Owner: spacedmonkey
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 6.1
Component: REST API | Version: 5.9
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
----------------------------+---------------------------
Comment (by manfcarlo):
Updated the pull request based on discussions happening at
https://github.com/WordPress/gutenberg/issues/27597
I expect the update solves this problem:
> Another limitation I can see is
[https://github.com/WordPress/gutenberg/issues/37126 the example code in
this issue] would still not work, due to the `map_meta_cap` filter
ultimately being applied to `edit_template` rather than `edit_post`. This
may not be a problem if it is understood that `edit_post` should not be
used for templates, but again, thoughts are welcome.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54516#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list