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

WordPress Trac noreply at wordpress.org
Tue Jan 14 16:54:57 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     |
--------------------------+------------------------------

Comment (by pbearne):

 Replying to [comment:18 markoheijnen]:
 > It will fix your bug since when width = null and height is 500 then it
 will continue. It will not when both values are null and that is good and
 should not change.

 The current test

 {{{
  if ( ! ( isset( $size_data['width'] ) && isset( $size_data['height'] ) )
 )
    continue;
 }}}

 skips the rest of the foreach if either value is null what no what we want

 Have I got this wrong?

 Paul

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


More information about the wp-trac mailing list