mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
This affects the `::walk()`, `::paged_walk()`, and `::get_number_of_root_elements()` methods. PHP 8 changes the way string to number comparisons are performed: https://wiki.php.net/rfc/string_to_number_comparison In particular, checking if an empty string is equal to zero in PHP 8 evaluates to `false`, not `true`. For the `WP_Walker` class, this resulted in an incorrect handling of parent items in a few methods. By explicitly checking for an `empty()` value instead, we make sure the check works as expected in PHP 8 and earlier versions. Follow-up to [35876], [48960], [49043], [49076]. Props sunxiyuan, aristath, SergeyBiryukov. Fixes #53474. git-svn-id: https://develop.svn.wordpress.org/trunk@51204 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| e2e | ||
| gutenberg | ||
| phpunit | ||
| qunit | ||