[wp-trac] [WordPress Trac] #53372: Loose type check against dates in rest_validate_value_from_schema causes invalidation for valid timestamp

WordPress Trac noreply at wordpress.org
Thu Jun 10 10:21:05 UTC 2021


#53372: Loose type check against dates in rest_validate_value_from_schema causes
invalidation for valid timestamp
----------------------------------------+-----------------------------
 Reporter:  jonmcpartland               |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  REST API                    |     Version:
 Severity:  minor                       |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  rest-api
----------------------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:   => has-patch needs-unit-tests
 * version:  trunk =>
 * milestone:  Awaiting Review => Future Release


Comment:

 Welcome @jonmcpartland , good catch! This seems correct to me but it would
 benefit from some tests.

 https://make.wordpress.org/core/handbook/testing/automated-
 testing/phpunit/

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


More information about the wp-trac mailing list