Make WordPress Core

Changeset 64097


Ignore:
Timestamp:
10/05/2026 05:04:02 PM (5 weeks ago)
Author:
lancewillett
Message:

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

Merges [64016] to the 7.1 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/13969

Props jonsurrell, adrianmoldovanwp, lucatume.
See #65893.

Location:
branches/7.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/7.1

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

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