Make WordPress Core

Changeset 64100


Ignore:
Timestamp:
10/05/2026 05:10:34 PM (17 hours ago)
Author:
lancewillett
Message:

Tests: Use the recognized ID ordering in a query test.

Merges [64016] to the 6.8 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: ​https://github.com/WordPress/wordpress-develop/pull/13971

Props jonsurrell, adrianmoldovanwp, lucatume.
See #65893.

Location:
branches/6.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/tests/phpunit/tests/query/thePost.php

    r59993 r64100  
    111111                                'post_type' => 'page',
    112112                                'post__in'  => self::$page_child_ids,
    113                                 'orderby'   => 'id',
     113                                'orderby'   => 'ID',
    114114                                'order'     => 'ASC',
    115115                        )
Note: See TracChangeset for help on using the changeset viewer.