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

WordPress Trac noreply at wordpress.org
Mon Oct 31 01:47:39 UTC 2016


#38531: Support for arrays in schema validation and sanitization
---------------------------------------------+---------------------
 Reporter:  joehoyle                         |       Owner:  pento
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.7
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+---------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39046"]:
 {{{
 #!CommitTicketReference repository="" revision="39046"
 REST API: Add support for arrays in schema validation and sanitization.

 By allowing more fine-grained validation and sanitisation of endpoint
 args, we can ensure the correct data is being passed to endpoints.

 This can easily be extended to support new data types, such as CSV fields
 or objects.

 Props joehoyle, rachelbaker, pento.
 Fixes #38531.
 }}}

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


More information about the wp-trac mailing list