Changeset 54094 for trunk/src/wp-includes/media.php
- Timestamp:
- 09/07/2022 03:39:28 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r54085 r54094 3906 3906 3907 3907 /** 3908 * Filters the default image output mapping. 3909 * 3910 * With this filter callback, WebP image files will be generated for certain JPEG source files. 3911 * 3912 * @since 6.1.0 3913 * 3914 * @param array $output_mapping Map of mime type to output format. 3915 * @retun array The adjusted default output mapping. 3916 */ 3917 function wp_default_image_output_mapping( $output_mapping ) { 3918 $output_mapping['image/jpeg'] = 'image/webp'; 3919 return $output_mapping; 3920 } 3921 3922 /** 3908 3923 * Prints default Plupload arguments. 3909 3924 *
Note: See TracChangeset
for help on using the changeset viewer.