[wp-trac] [WordPress Trac] #45014: REST API: Declare unfiltered_html capability using JSON Hyper Schema `targetSchema`

WordPress Trac noreply at wordpress.org
Mon Oct 8 22:44:08 UTC 2018


#45014: REST API: Declare unfiltered_html capability using JSON Hyper Schema
`targetSchema`
--------------------------------------+------------------------------
 Reporter:  danielbachhuber           |       Owner:  danielbachhuber
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  5.0
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+------------------------------
Changes (by danielbachhuber):

 * owner:  (none) => danielbachhuber
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43682" 43682]:
 {{{
 #!CommitTicketReference repository="" revision="43682"
 REST API: Declare `unfiltered_html` capability in links.

 Because user capabilities can be modified at runtime, the REST API needs
 to expose them in some evaluated but declarative manner for clients to
 interpret. JSON Hyper Schema `targetSchema` provides an appropriate
 paradigm for doing so.

 Props timothyblynjacobs.
 Fixes #45014.
 }}}

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


More information about the wp-trac mailing list