From 190ff5ec2220dc58b4fb84d9fa521de95392ae21 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 17 Jun 2021 11:59:54 +0200 Subject: [PATCH] Account for two new constant polyfills as added in WP 5.8 Refs: * https://core.trac.wordpress.org/changeset/50810#file7 * https://core.trac.wordpress.org/browser/trunk/src/wp-includes/compat.php#L374-L380 --- PHPCompatibilityWP/ruleset.xml | 3 +++ Test/WPTest.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/PHPCompatibilityWP/ruleset.xml b/PHPCompatibilityWP/ruleset.xml index ac1f699..b451c71 100644 --- a/PHPCompatibilityWP/ruleset.xml +++ b/PHPCompatibilityWP/ruleset.xml @@ -26,6 +26,7 @@ * array_replace_recursive(): since WP 4.5.3 up to 5.2.x. The polyfill was removed in WP 5.3. * is_iterable(): since WP 4.9.6 * is_countable(): since WP 4.9.6 + * IMAGETYPE_WEBP and IMG_WEBP: since WP 5.8.0. --> @@ -37,6 +38,8 @@ + +