[wp-trac] [WordPress Trac] #26823: wp_get_image_editor->multi_resize()

WordPress Trac noreply at wordpress.org
Mon Jan 13 16:59:03 UTC 2014


#26823: wp_get_image_editor->multi_resize()
--------------------------------+-----------------------------
 Reporter:  pbearne             |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  External Libraries  |    Version:  trunk
 Severity:  normal              |   Keywords:  has-patch
--------------------------------+-----------------------------
 The example code shows passing null as a width/height

 [http://bhoover.com/wp_image_editor-wordpress-image-editing-tutorial/]

 But the code does not support NULL's as it exits the function if both
 width/height are not set.

 I have created a patch though I am not sure that is the right way to do
 this but it does work

 All I have done is check for NULL and set it to PHP_INT_MAX-1 so that it
 is not sized on the axis

 Paul

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26823>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list