[wp-trac] [WordPress Trac] #34225: Display correct dimensions for image sizes in media modal

WordPress Trac noreply at wordpress.org
Wed Jun 1 20:01:39 UTC 2016


#34225: Display correct dimensions for image sizes in media modal
--------------------------+-----------------------------
 Reporter:  krogsgard     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Media         |     Version:  4.3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------

Comment (by joemcgill):

 Related: #35390. If we removed `image_constrain_size_for_editor()` from
 the `image_downsize()` dependency chain, we could fix this without passing
 around context. As @azaozz rightly pointed out on #35390, the function
 name itself includes "for_editor", so trying to figure out context is a
 bit of an oddity.

 That said, I'm not opposed to including a short term fix for this as it
 does seem unexpected that you would include custom sizes in that dropdown
 and get a constrained size represented.

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


More information about the wp-trac mailing list