[wp-trac] [WordPress Trac] #41014: Add `permalink_structure` to REST API settings endpoint
WordPress Trac
noreply at wordpress.org
Mon Jun 12 20:16:44 UTC 2017
#41014: Add `permalink_structure` to REST API settings endpoint
-------------------------+------------------------------
Reporter: aduth | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
-------------------------+------------------------------
Comment (by jnylen0):
Replying to [comment:3 aduth]:
> Why would it be unsuitable if that's the same capability checked on the
equivalent admin screen?
Because users without `manage_options` would not be able to '''read''' the
value of this setting, which they need to do in order to see a correct
permalink.
> what is the proposed workaround?
A couple of options discussed at #38731 (add better permissions
capabilities to the settings endpoint, or add read-only "site info" to
`/wp-json` instead, like we did for `gmt_offset`).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41014#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list