Ticket #17475: image-edit.php.diff

File image-edit.php.diff, 604 bytes (added by mau, 2 years ago)
Line 
1Index: wp-admin/includes/image-edit.php
2===================================================================
3--- wp-admin/includes/image-edit.php    (revision 17943)
4+++ wp-admin/includes/image-edit.php    (working copy)
5@@ -603,7 +603,7 @@
6                $meta['hwstring_small'] = "height='$uheight' width='$uwidth'";
7 
8                if ( $success && ('nothumb' == $target || 'all' == $target) ) {
9-                       $sizes = apply_filters( 'intermediate_image_sizes', array('large', 'medium', 'thumbnail') );
10+                       $sizes = get_intermediate_image_sizes();
11                        if ( 'nothumb' == $target )
12                                $sizes = array_diff( $sizes, array('thumbnail') );
13                }