[wp-trac] [WordPress Trac] #35390: image_constrain_size_for_editor() should not affect images generated on the front end when `large` size is used.

WordPress Trac noreply at wordpress.org
Thu Jan 14 16:26:44 UTC 2016


#35390: image_constrain_size_for_editor() should not affect images generated on the
front end when `large` size is used.
------------------------------------------+------------------------
 Reporter:  rabmalin                      |       Owner:  joemcgill
     Type:  defect (bug)                  |      Status:  accepted
 Priority:  normal                        |   Milestone:  4.5
Component:  Media                         |     Version:  4.4
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------

Comment (by rabmalin):

 I checked `image_constrain_size_for_editor function. I think we need to
 check `$context` before setting max width and max height comparing with
 content_width. No?

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


More information about the wp-trac mailing list