Changeset 58849 for trunk/src/wp-includes/functions.php
- Timestamp:
- 08/05/2024 04:11:40 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r58848 r58849 2707 2707 */ 2708 2708 if ( $is_image ) { 2709 /** This filter is documented in wp-includes/class-wp-image-editor.php */ 2710 $output_formats = apply_filters( 'image_editor_output_format', array(), $_dir . $filename, $mime_type ); 2709 $output_formats = wp_get_image_editor_output_format( $_dir . $filename, $mime_type ); 2711 2710 $alt_types = array(); 2712 2711 … … 3121 3120 'image/webp' => 'webp', 3122 3121 'image/avif' => 'avif', 3122 'image/heic' => 'heic', 3123 3123 ) 3124 3124 ); … … 3300 3300 * @since 5.8.0 Added support for WebP images. 3301 3301 * @since 6.5.0 Added support for AVIF images. 3302 * @since 6.7.0 Added support for HEIC images. 3302 3303 * 3303 3304 * @param string $file Full path to the file. … … 3372 3373 ) { 3373 3374 $mime = 'image/avif'; 3375 } 3376 3377 if ( 3378 isset( $magic[1] ) && 3379 isset( $magic[2] ) && 3380 'ftyp' === hex2bin( $magic[1] ) && 3381 ( 'heic' === hex2bin( $magic[2] ) || 'heif' === hex2bin( $magic[2] ) ) 3382 ) { 3383 $mime = 'image/heic'; 3374 3384 } 3375 3385 } catch ( Exception $e ) {
Note: See TracChangeset
for help on using the changeset viewer.