Make WordPress Core


Ignore:
Timestamp:
07/28/2021 01:03:22 PM (3 years ago)
Author:
desrosj
Message:

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.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/compat.php

    r50814 r51508  
    372372}
    373373
    374 // WebP constants are only defined in PHP 7.1+.
     374// IMAGETYPE_WEBP constant is only defined in PHP 7.1 or later.
    375375if ( ! defined( 'IMAGETYPE_WEBP' ) ) {
    376376    define( 'IMAGETYPE_WEBP', 18 );
    377377}
     378
     379// IMG_WEBP constant is only defined in PHP 7.0.10 or later.
    378380if ( ! defined( 'IMG_WEBP' ) ) {
    379381    define( 'IMG_WEBP', IMAGETYPE_WEBP ); // phpcs:ignore PHPCompatibility.Constants.NewConstants.imagetype_webpFound
Note: See TracChangeset for help on using the changeset viewer.