Make WordPress Core

Changeset 64098


Ignore:
Timestamp:
10/05/2026 05:07:31 PM (6 weeks ago)
Author:
lancewillett
Message:

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: ​https://github.com/WordPress/wordpress-develop/pull/13968

Props jonsurrell, adrianmoldovanwp, lucatume.
See #65893.

Location:
branches/7.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/7.0

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

    r61038 r64098  
    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.