[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 11:50:38 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
----------------------------------------+-----------------------------

Comment (by jonmcpartland):

 Hi @johnbillion

 Thanks for the feedback. I am attaching a new diff with added unit tests.

 Best
 Jon

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


More information about the wp-trac mailing list