[wp-trac] [WordPress Trac] #55300: tests for WP_List_Util::pluck and WP_List_Util::sort
WordPress Trac
noreply at wordpress.org
Sat Oct 8 02:30:32 UTC 2022
#55300: tests for WP_List_Util::pluck and WP_List_Util::sort
--------------------------------------+-----------------------------
Reporter: pbearne | Owner: hellofromTonya
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 6.1
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Comment (by costdev):
Pinging @audrasjb and @SergeyBiryukov for review of
[https://github.com/WordPress/wordpress-develop/pull/3419 PR 3419].
Note: Writing these tests exposed a bug in
`WP_List_Util::sort()/WP_List_Util::sort_callback()` relating to the
difference in sort order for PHP < 7 and > 7. Until this bug is fixed, or
the minimum PHP version is raised to 7+, the related tests will be skipped
for PHP < 7.
References:
- https://wiki.php.net/rfc/stable_sorting
-
https://www.php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other
.sort-order
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55300#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list