[wp-trac] [WordPress Trac] #47905: rest_validate_value_from_schema() shows the value instead of the param when it's invalid.

WordPress Trac noreply at wordpress.org
Fri Sep 13 03:05:27 UTC 2019


#47905: rest_validate_value_from_schema() shows the value instead of the param when
it's invalid.
------------------------------+-----------------------------
 Reporter:  manzoorwani.jk    |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.3
Component:  REST API          |     Version:  4.7
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  rest-api
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"46101" 46101]:
 {{{
 #!CommitTicketReference repository="" revision="46101"
 REST API: Use correct parameter name in
 `rest_validate_value_from_schema()` error messages.

 Props manzoorwanijk.
 Fixes #47905.
 }}}

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


More information about the wp-trac mailing list