[wp-trac] [WordPress Trac] #50617: REST API: Add modified_before and modified_after to WP_REST_Request attributes

WordPress Trac noreply at wordpress.org
Tue Jan 12 17:31:40 UTC 2021


#50617: REST API: Add modified_before and modified_after to WP_REST_Request
attributes
---------------------------+---------------------
 Reporter:  claytoncollie  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  5.7
Component:  REST API       |     Version:  4.7
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+---------------------

Comment (by johnbillion):

 {{{
 There were 3 failures:

 1) WP_Test_REST_Attachments_Controller::test_get_items_valid_modified_date
 Failed asserting that actual size 0 matches expected size 1.

 /var/www/tests/phpunit/tests/rest-api/rest-attachments-controller.php:618

 2) WP_Test_REST_Pages_Controller::test_get_items_valid_modified_date
 Failed asserting that actual size 0 matches expected size 1.

 /var/www/tests/phpunit/tests/rest-api/rest-pages-controller.php:404

 3) WP_Test_REST_Posts_Controller::test_get_items_valid_modified_date
 Failed asserting that actual size 0 matches expected size 1.

 /var/www/tests/phpunit/tests/rest-api/rest-posts-controller.php:1519
 }}}

 @claytoncollie Wanna look into these? These look like sporadic test
 failures that only fail because of indeterminate sort order, but as far as
 I can tell those tests use specific and distinct dates.

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


More information about the wp-trac mailing list