Ticket #11801: wp-image_get_intermediate_size-patch.diff
| File wp-image_get_intermediate_size-patch.diff, 717 bytes (added by , 17 years ago) |
|---|
-
wp-includes/media.php
484 484 ksort($areas); 485 485 foreach ( $areas as $_size ) { 486 486 $data = $imagedata['sizes'][$_size]; 487 if ( $data['width'] >= $size[0] || $data['height'] >= $size[1] ) { 487 // find a size where *both* width and height are bigger or equal to the required 488 if ( $data['width'] >= $size[0] && $data['height'] >= $size[1] ) { 488 489 $file = $data['file']; 489 490 list($width, $height) = image_constrain_size_for_editor( $data['width'], $data['height'], $size ); 490 491 return compact( 'file', 'width', 'height' );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)