[wp-trac] [WordPress Trac] #43977: Fix error-prone string to array parsing

WordPress Trac noreply at wordpress.org
Tue Oct 2 20:40:23 UTC 2018


#43977: Fix error-prone string to array parsing
----------------------------------------+-----------------------
 Reporter:  flixos90                    |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  5.0
Component:  General                     |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:  rest-api
----------------------------------------+-----------------------

Comment (by david.binda):

 Adding one more unit test for the `null` passed to
 `rest_validate_value_from_schema` function when the schema expects an
 array. This unit test is passing prior and after those changes.

 There are no more unit test issues with this patch now.

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


More information about the wp-trac mailing list