Skip to content

Commit 21a88de

Browse files
committed
Tests: Use the recognized ID ordering in a query test.
Merges [64016] to the 7.0 branch, limited to the `orderby` correction in `tests/phpunit/tests/query/thePost.php`. The sticky-post and canonical rewrite changes are not included. Use `ID` instead of `id` so the query orders child pages by their IDs rather than falling back to their shared date. Developed in: #13968 Props jonsurrell, adrianmoldovanwp, lucatume. See #65893. git-svn-id: https://develop.svn.wordpress.org/branches/7.0@64098 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9a39c9f commit 21a88de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/phpunit/tests/query/thePost.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function ( $fields, $query ) {
110110
'fields' => 'custom',
111111
'post_type' => 'page',
112112
'post__in' => self::$page_child_ids,
113-
'orderby' => 'id',
113+
'orderby' => 'ID',
114114
'order' => 'ASC',
115115
)
116116
);

0 commit comments

Comments
 (0)