[wp-trac] [WordPress Trac] #52375: Extract the validation of specific data types from rest_validate_value_from_schema() into separate functions

WordPress Trac noreply at wordpress.org
Thu Jan 28 17:59:31 UTC 2021


#52375: Extract the validation of specific data types from
rest_validate_value_from_schema() into separate functions
-------------------------+--------------------------------
 Reporter:  yakimun      |       Owner:  TimothyBlynJacobs
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.7
Component:  REST API     |     Version:  4.7
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

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


Comment:

 In [changeset:"50060" 50060]:
 {{{
 #!CommitTicketReference repository="" revision="50060"
 REST API: Refactor `rest_validate_value_from_schema` into separate
 validation functions per-type.

 Props yakimun.
 Fixes #52375.
 }}}

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


More information about the wp-trac mailing list