[wp-trac] [WordPress Trac] #25038: imagecreatetruecolor fails when WP tries to make image with width of 0
WordPress Trac
noreply at wordpress.org
Mon Oct 7 16:32:24 UTC 2013
#25038: imagecreatetruecolor fails when WP tries to make image with width of 0
--------------------------+------------------
Reporter: pat@… | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.7
Component: Media | Version: 2.5
Severity: major | Resolution:
Keywords: has-patch |
--------------------------+------------------
Changes (by jeremyfelt):
* keywords: has-patch needs-testing => has-patch
Comment:
plocha's patch works well. I refreshed in [attachment:25038.diff] with an
updated inline comment about the check for a minimum of 1. Also removed an
unnecessary change from `$w = $max_width;` to `$w++;`. No reason for not
doing it that way, but the diff reads cleaner without it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25038#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list