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

WordPress Trac noreply at wordpress.org
Mon Jan 13 20:02:35 UTC 2014


#26823: wp_get_image_editor->multi_resize()
-------------------------------------------+------------------------------
 Reporter:  pbearne                        |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Inline Docs                    |     Version:  3.5
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |
-------------------------------------------+------------------------------

Comment (by alconebay):

 Replying to [comment:3 DH-Shredder]:

 pbearne is referring to these lines:
 [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
 image-editor-gd.php#L208]
 [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-
 image-editor-imagick.php#L275].

 They kill the resize if either height or width are missing. Both have to
 be present for the resize to continue. Changing the condition on these
 lines from "AND" to "OR" allows the resize to continue with only one
 dimension present:


 {{{
 if ( ! ( isset( $size_data['width'] ) || isset( $size_data['height'] ) ) )
 }}}

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


More information about the wp-trac mailing list