[wp-trac] [WordPress Trac] #45407: Add block attributes to `wp_calculate_image_sizes` to allow for proper handling of `sizes` attribute

WordPress Trac noreply at wordpress.org
Mon Jan 7 19:13:10 UTC 2019


#45407: Add block attributes to `wp_calculate_image_sizes` to allow for proper
handling of `sizes` attribute
--------------------------+---------------------
 Reporter:  mor10         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.1
Component:  Media         |     Version:
 Severity:  major         |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+---------------------

Comment (by mor10):

 @youknowriad I wrote up a breakdown of why knowing the alignment property
 of the container is essential for themes, complete with visuals and code
 examples, a while back in a Gutenberg ticket. What you're talking about in
 the last point on your list is something similar to what I proposed back
 then:

 https://github.com/WordPress/gutenberg/issues/6177#issuecomment-400095305

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


More information about the wp-trac mailing list