mirror of
git://develop.git.wordpress.org/
synced 2025-02-23 08:03:41 +01:00
Docs: Correct a comment about WebP constants in wp-includes/compat.php
.
Follow-up to [50810], [50814]. Props GaryJ, rtm909. Fixes #53680. git-svn-id: https://develop.svn.wordpress.org/trunk@51474 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
70c9aabf0d
commit
49b11dcad7
@ -371,10 +371,12 @@ if ( ! function_exists( 'is_iterable' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
// WebP constants are only defined in PHP 7.1+.
|
||||
// IMAGETYPE_WEBP constant is only defined in PHP 7.1 or later.
|
||||
if ( ! defined( 'IMAGETYPE_WEBP' ) ) {
|
||||
define( 'IMAGETYPE_WEBP', 18 );
|
||||
}
|
||||
|
||||
// IMG_WEBP constant is only defined in PHP 7.0.10 or later.
|
||||
if ( ! defined( 'IMG_WEBP' ) ) {
|
||||
define( 'IMG_WEBP', IMAGETYPE_WEBP ); // phpcs:ignore PHPCompatibility.Constants.NewConstants.imagetype_webpFound
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user