[wp-trac] [WordPress Trac] #48812: REST API: Settings endpoint - read access
WordPress Trac
noreply at wordpress.org
Wed Nov 27 14:57:58 UTC 2019
#48812: REST API: Settings endpoint - read access
-------------------------+-----------------------------
Reporter: scruffian | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Keywords: has-patch
Focuses: |
-------------------------+-----------------------------
With Full Site Editing in Gutenberg, we will be letting people see site
level settings in the editor (for example Site Title). Only users with
manage_options should be able to change these settings, but we'll need to
show them to all users who can edit posts, so that they can preview the
editor with these elements displayed.
This patch changes the capabilities needed to read the settings endpoint,
so that anyone with edit_posts can read the settings, but not edit them.
This is needed by this Gutenberg PR:
https://github.com/WordPress/gutenberg/pull/18760
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48812>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list