@@ -6233,7 +6233,7 @@ function wp_high_priority_element_flag( $value = null ) {
62336233 * @return string[] An array of mime type mappings.
62346234 */
62356235function wp_get_image_editor_output_format ( $ filename , $ mime_type ) {
6236- $ default_output_format = array (
6236+ $ output_format = array (
62376237 'image/heic ' => 'image/jpeg ' ,
62386238 'image/heif ' => 'image/jpeg ' ,
62396239 'image/heic-sequence ' => 'image/jpeg ' ,
@@ -6249,16 +6249,17 @@ function wp_get_image_editor_output_format( $filename, $mime_type ) {
62496249 * @see WP_Image_Editor::get_output_format()
62506250 *
62516251 * @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.
62536254 *
62546255 * @param string[] $output_format {
62556256 * An array of mime type mappings. Maps a source mime type to a new
6256- * destination mime type. Default maps uploaded HEIC images to JPEG output.
6257+ * destination mime type. By default maps HEIC/HEIF input to JPEG output.
62576258 *
62586259 * @type string ...$0 The new mime type.
62596260 * }
62606261 * @param string $filename Path to the image.
62616262 * @param string $mime_type The source image mime type.
62626263 */
6263- return apply_filters ( 'image_editor_output_format ' , $ default_output_format , $ filename , $ mime_type );
6264+ return apply_filters ( 'image_editor_output_format ' , $ output_format , $ filename , $ mime_type );
62646265}
0 commit comments