mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 06:07:23 +01:00
Docs: Correct a comment about WebP constants in wp-includes/compat.php
.
Follow-up to [50810], [50814]. Props GaryJ, rtm909, SergeyBiryukov. Merges [51474] to the 5.8 branch. Fixes #53680. Built from https://develop.svn.wordpress.org/branches/5.8@51508 git-svn-id: http://core.svn.wordpress.org/branches/5.8@51119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f6b7f4c3e9
commit
94da59e312
@ -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
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8.1-alpha-51507';
|
||||
$wp_version = '5.8.1-alpha-51508';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user