diff --git src/wp-includes/media.php src/wp-includes/media.php
index 01543b9dcd..62ec9615d7 100644
|
|
function wp_get_image_editor( $path, $args = array() ) { |
3751 | 3751 | } |
3752 | 3752 | } |
3753 | 3753 | |
| 3754 | /** This filter is documented in wp-includes/class-wp-image-editor.php */ |
| 3755 | $output_format = apply_filters( 'image_editor_output_format', array(), $path, $args['mime_type'] ); |
| 3756 | if ( isset( $output_format[ $args['mime_type'] ] ) ) { |
| 3757 | $args['mime_type'] = $output_format[ $mime_type ]; |
| 3758 | } |
| 3759 | |
3754 | 3760 | $implementation = _wp_image_editor_choose( $args ); |
3755 | 3761 | |
3756 | 3762 | if ( $implementation ) { |