diff --git wp-includes/media.php wp-includes/media.php
index 131873a..cb2840c 100644
|
|
function wp_get_image_editor( $path, $args = array() ) { |
1161 | 1161 | $args['mime_type'] = $file_info['type']; |
1162 | 1162 | } |
1163 | 1163 | |
1164 | | $implementation = apply_filters( 'wp_image_editor_class', _wp_image_editor_choose( $args ) ); |
| 1164 | $implementation = _wp_image_editor_choose( $args ); |
1165 | 1165 | |
1166 | 1166 | if ( $implementation ) { |
1167 | 1167 | $editor = new $implementation( $path ); |
| 1168 | |
| 1169 | $editor = apply_filters( 'wp_image_editor_instance', $editor, $args ); |
| 1170 | |
1168 | 1171 | $loaded = $editor->load(); |
1169 | 1172 | |
1170 | 1173 | if ( is_wp_error( $loaded ) ) |