Remove wp_image_editor_class filter. wp_image_editors is sufficient. props scribu. fixes #22538.
git-svn-id: http://core.svn.wordpress.org/trunk@22859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
902314ad3c
commit
1c617a0752
|
@ -1161,7 +1161,7 @@ function wp_get_image_editor( $path, $args = array() ) {
|
|||
$args['mime_type'] = $file_info['type'];
|
||||
}
|
||||
|
||||
$implementation = apply_filters( 'wp_image_editor_class', _wp_image_editor_choose( $args ) );
|
||||
$implementation = _wp_image_editor_choose( $args );
|
||||
|
||||
if ( $implementation ) {
|
||||
$editor = new $implementation( $path );
|
||||
|
|
Loading…
Reference in New Issue