Changeset 45424 for trunk/tests/phpunit/tests/query/stickies.php
- Timestamp:
- 05/26/2019 12:11:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/stickies.php
r42343 r45424 13 13 $now = time(); 14 14 for ( $i = 0; $i <= 22; $i++ ) { 15 $post_date = date( 'Y-m-d H:i:s', $now - ( 10 * $i ) );15 $post_date = gmdate( 'Y-m-d H:i:s', $now - ( 10 * $i ) ); 16 16 self::$posts[ $i ] = $factory->post->create( 17 17 array( … … 29 29 $q = new WP_Query( 30 30 array( 31 'year' => date( 'Y' ),31 'year' => gmdate( 'Y' ), 32 32 'fields' => 'ids', 33 33 'posts_per_page' => 3,
Note: See TracChangeset
for help on using the changeset viewer.