[wp-trac] [WordPress Trac] #23987: add_image_size() shouldn't crop 0 values

WordPress Trac noreply at wordpress.org
Mon Oct 7 15:26:12 UTC 2013


#23987: add_image_size() shouldn't crop 0 values
-----------------------------+------------------------------
 Reporter:  Clorith          |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  3.5.1
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by andg):

 Not really sure if that should even be a possibility, still if

 > the image should only be cropped by values that are entered

 then 0 as a value for either the height or the width isn't really a good
 option in my opinion. Since we're basically willing to say "don't crop
 this dimension", boolean FALSE might be more appropriate.

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


More information about the wp-trac mailing list