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

WordPress Trac noreply at wordpress.org
Tue Jan 14 16:38:28 UTC 2014


#26823: wp_get_image_editor->multi_resize()
--------------------------+------------------------------
 Reporter:  pbearne       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by markoheijnen):

 * component:  External Libraries => Media


Comment:

 We could do a check there if width and height or 0/null then it returns
 false.

 The absint isn't needed and how it is done is redundant since you are
 calling multiple times.
 {{{if ( ! isset( $size_data['width'] ) && ! isset( $size_data['height'] )
 ) }}} should be enough then. Didn't test it.

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


More information about the wp-trac mailing list