[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
Tue Jan 8 17:52:34 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 The new layouts introduced with Gutenberg, and the potential
 for other layouts once phase 2 gets off the ground, are defining the very
 edge of the RICG responsive images spec, and in many cases pushing the
 spec beyond its limits. This is an ongoing conversation I'm having with
 people outside the WordPress community as well as here. It is also not
 relevant to this ticket.

 This ticket addresses a specific bug introduced with Gutenberg which
 renders the html output of 100% of sites displaying `wide` and `full`
 aligned images incorrect. The proposed solution builds on existing
 methodology in themes which is in use across the ecosystem including in
 default themes, and can easily be made backwards compatible to older
 versions of WordPress.

 While it is true the future of layouts in WordPress will require a
 complete rethink of media, and that there is a good chance WordPress will
 be the proving ground for rethinking media for the web platform, these
 discussions are all in their infancy and any resolution is in the future.
 The bug flagged here is present, currently active on every WordPress site
 running 5.0.x, and is directly impacting users in the real world.

 This bug can and should be fixed immediately so we can move on and discuss
 the larger question of how media should be handled in WordPress and on the
 web in the future.

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


More information about the wp-trac mailing list