PHP Deprecated warnings in log file
-
Hi
We’re using this plugin with PHP 8.2, and a couple of times per day, we see the following warnings in our log file:
PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /(redacted)/wp-content/plugins/webp-express/webp-express.php on line 45It would be great if you could fix this in an upcoming warning.
Line 45 should simply be changed from:
if (preg_match('/webp-express-web-service$/', $requestUriNoQS)) {To:
if ($requestUriNoQS && preg_match('/webp-express-web-service$/', $requestUriNoQS)) {Thanks in advance 🙂
The topic ‘PHP Deprecated warnings in log file’ is closed to new replies.