[wp-trac] [WordPress Trac] #38583: Support for objects in schema validation and sanitization

WordPress Trac noreply at wordpress.org
Thu Oct 5 00:18:46 UTC 2017


#38583: Support for objects in schema validation and sanitization
-------------------------------------------------+-------------------------
 Reporter:  rachelbaker                          |       Owner:  rmccue
     Type:  enhancement                          |      Status:  reviewing
 Priority:  high                                 |   Milestone:  4.9
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by kadamwhite):

 In [changeset:"41758"]:
 {{{
 #!CommitTicketReference repository="" revision="41758"
 REST API: Support objects in settings schema.

 Enables register_setting to accept an object as its schema value, allowing
 settings to accept non-scalar values through the REST API.
 This whitelists the added type in the settings controller, and passes
 properties from argument registration into the validation functions.

 Props joehoyle.
 See #38583.
 }}}

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


More information about the wp-trac mailing list