[wp-trac] [WordPress Trac] #18297: Cropping in step 2 in Custom_Image_Header

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 29 20:36:26 UTC 2011


#18297: Cropping in step 2 in Custom_Image_Header
--------------------------+------------------------------
 Reporter:  wpsmith       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by wpsmith):

 So the PHP in function step_2 ():

 Replace

 {{{
 if ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) {
 }}}

 with

 {{{
 if ( ( $width == HEADER_IMAGE_WIDTH && $height == HEADER_IMAGE_HEIGHT ) ||
 ( ( $width < HEADER_IMAGE_WIDTH && $height < HEADER_IMAGE_HEIGHT ) ) ) {
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18297#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list