Changeset 52425
- Timestamp:
- 12/31/2021 01:53:19 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
composer.json (modified) (1 diff)
-
src/wp-admin/includes/file.php (modified) (3 diffs)
-
src/wp-admin/includes/image.php (modified) (1 diff)
-
src/wp-includes/class-wp-image-editor-gd.php (modified) (1 diff)
-
src/wp-includes/compat.php (modified) (1 diff)
-
src/wp-includes/deprecated.php (modified) (1 diff)
-
src/wp-includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r52412 r52425 17 17 "squizlabs/php_codesniffer": "3.6.0", 18 18 "wp-coding-standards/wpcs": "~2.3.0", 19 "phpcompatibility/phpcompatibility-wp": "~2.1. 2",19 "phpcompatibility/phpcompatibility-wp": "~2.1.3", 20 20 "yoast/phpunit-polyfills": "^1.0.1" 21 21 }, -
trunk/src/wp-admin/includes/file.php
r52406 r52425 1385 1385 array( 1386 1386 'php' => phpversion(), 1387 // phpcs:ignore PHPCompatibility.Constants.NewConstants.sodium_library_versionFound1388 1387 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), 1389 1388 ) … … 1418 1417 array( 1419 1418 'php' => phpversion(), 1420 // phpcs:ignore PHPCompatibility.Constants.NewConstants.sodium_library_versionFound1421 1419 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), 1422 1420 'polyfill_is_fast' => false, … … 1492 1490 'skipped_sig' => $skipped_signature, 1493 1491 'php' => phpversion(), 1494 // phpcs:ignore PHPCompatibility.Constants.NewConstants.sodium_library_versionFound1495 1492 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), 1496 1493 ) -
trunk/src/wp-admin/includes/image.php
r52357 r52425 948 948 */ 949 949 function file_is_displayable_image( $path ) { 950 $displayable_image_types = array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP, IMAGETYPE_ICO, IMAGETYPE_WEBP ); // phpcs:ignore PHPCompatibility.Constants.NewConstants.imagetype_webpFound950 $displayable_image_types = array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP, IMAGETYPE_ICO, IMAGETYPE_WEBP ); 951 951 952 952 $info = wp_getimagesize( $path ); -
trunk/src/wp-includes/class-wp-image-editor-gd.php
r51790 r52425 71 71 return ( $image_types & IMG_GIF ) != 0; 72 72 case 'image/webp': 73 return ( $image_types & IMG_WEBP ) != 0; // phpcs:ignore PHPCompatibility.Constants.NewConstants.img_webpFound73 return ( $image_types & IMG_WEBP ) != 0; 74 74 } 75 75 -
trunk/src/wp-includes/compat.php
r52040 r52425 486 486 // IMG_WEBP constant is only defined in PHP 7.0.10 or later. 487 487 if ( ! defined( 'IMG_WEBP' ) ) { 488 define( 'IMG_WEBP', IMAGETYPE_WEBP ); // phpcs:ignore PHPCompatibility.Constants.NewConstants.imagetype_webpFound489 } 488 define( 'IMG_WEBP', IMAGETYPE_WEBP ); 489 } -
trunk/src/wp-includes/deprecated.php
r51597 r52425 3326 3326 return (imagetypes() & IMG_GIF) != 0; 3327 3327 case 'image/webp': 3328 return (imagetypes() & IMG_WEBP) != 0; // phpcs:ignore PHPCompatibility.Constants.NewConstants.img_webpFound3328 return (imagetypes() & IMG_WEBP) != 0; 3329 3329 } 3330 3330 } else { -
trunk/src/wp-includes/media.php
r52332 r52425 5197 5197 $width, 5198 5198 $height, 5199 IMAGETYPE_WEBP, // phpcs:ignore PHPCompatibility.Constants.NewConstants.imagetype_webpFound5199 IMAGETYPE_WEBP, 5200 5200 sprintf( 5201 5201 'width="%d" height="%d"',
Note: See TracChangeset
for help on using the changeset viewer.