From 8a975839f12b4991382edbc91cc1fe005ea80f56 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 22 Jul 2021 13:07:57 +0000 Subject: [PATCH] Docs: Correct a comment about WebP constants in `wp-includes/compat.php`. Follow-up to [50810], [50814]. Props GaryJ, rtm909. Fixes #53680. Built from https://develop.svn.wordpress.org/trunk@51474 git-svn-id: http://core.svn.wordpress.org/trunk@51085 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/compat.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/compat.php b/wp-includes/compat.php index aec742d77a..6fe5ab37e1 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -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 } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c3b36a1c6..c5a2d5740e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51473'; +$wp_version = '5.9-alpha-51474'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.