Changeset 59346
- Timestamp:
- 11/05/2024 04:07:45 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r59317 r59346 6234 6234 */ 6235 6235 function wp_get_image_editor_output_format( $filename, $mime_type ) { 6236 $ default_output_format = array(6236 $output_format = array( 6237 6237 'image/heic' => 'image/jpeg', 6238 6238 'image/heif' => 'image/jpeg', … … 6250 6250 * 6251 6251 * @since 5.8.0 6252 * @since 6.7.0 The default was changed from empty array to array containing the HEIC mime types. 6252 * @since 6.7.0 The default was changed from an empty array to an array 6253 * containing the HEIC/HEIF images mime types. 6253 6254 * 6254 6255 * @param string[] $output_format { 6255 6256 * An array of mime type mappings. Maps a source mime type to a new 6256 * destination mime type. Default maps uploaded HEIC imagesto JPEG output.6257 * destination mime type. By default maps HEIC/HEIF input to JPEG output. 6257 6258 * 6258 6259 * @type string ...$0 The new mime type. … … 6261 6262 * @param string $mime_type The source image mime type. 6262 6263 */ 6263 return apply_filters( 'image_editor_output_format', $ default_output_format, $filename, $mime_type );6264 } 6264 return apply_filters( 'image_editor_output_format', $output_format, $filename, $mime_type ); 6265 }
Note: See TracChangeset
for help on using the changeset viewer.