WordPress.org

Make WordPress Core

Ticket #22539: wp_get_image_editor_patch.diff

File wp_get_image_editor_patch.diff, 617 bytes (added by macbrink, 8 years ago)
  • .php

    old new  
    11601160                if ( isset( $file_info ) && $file_info['type'] )
    11611161                        $args['mime_type'] = $file_info['type'];
    11621162        }
     1163       
     1164        $implementation = apply_filters( 'wp_image_editor_class', _wp_image_editor_choose( $args ), $args );
    11631165
    1164         $implementation = apply_filters( 'wp_image_editor_class', _wp_image_editor_choose( $args ) );
    1165 
    11661166        if ( $implementation ) {
    11671167                $editor = new $implementation( $path );
    11681168                $loaded = $editor->load();