mirror of
git://develop.git.wordpress.org/
synced 2025-04-16 01:59:51 +02:00
Prevent term `NOT EXISTS` queries causing `redirect_canonical()` to throw a fatal error in PHP 8 and above, or a warning in earlier versions. This ensures the `tax_query`'s `terms` property both exists and is countable before attempting to count it. Props codesdnc, SergeyBiryukov, kadamwhite, costdev, miguelaxcar. Merges [54785] to the 6.1 branch. Fixes #55955. git-svn-id: https://develop.svn.wordpress.org/branches/6.1@54793 602fd350-edb4-49c9-b593-d223f7449a82