diff -urN wordpress-3.6.org/wp-includes/media.php wordpress/wp-includes/media.php
|
old
|
new
|
|
| 1536 | 1536 | require_once ABSPATH . WPINC . '/class-wp-image-editor-gd.php'; |
| 1537 | 1537 | require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php'; |
| 1538 | 1538 | |
| 1539 | | $implementations = apply_filters( 'wp_image_editors', |
| 1540 | | array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) ); |
| | 1539 | if ( defined( 'WP_DISABLE_IMAGICK' ) ) |
| | 1540 | $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_GD' ) ); |
| | 1541 | else |
| | 1542 | $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) ); |
| 1541 | 1543 | |
| 1542 | 1544 | foreach ( $implementations as $implementation ) { |
| 1543 | 1545 | if ( ! call_user_func( array( $implementation, 'test' ), $args ) ) |