[wp-trac] [WordPress Trac] #59256: Twenty Twenty-Two: Header image missing dimension attributes

WordPress Trac noreply at wordpress.org
Mon Sep 18 17:37:06 UTC 2023


#59256: Twenty Twenty-Two: Header image missing dimension attributes
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-testing-info needs-    |     Focuses:
  testing                                        |  performance
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56613" 56613]:
 {{{
 #!CommitTicketReference repository="" revision="56613"
 Bundled Theme: Add missing dimension attributes to images in Twenty
 Twenty-Two patterns.

 The dimension attributes `width` and `height` should be present on every
 image in order to avoid layout shifts and be able to leverage WordPress
 core's image loading optimization functionality.

 This changeset adds dimension attributes to the `core/image` blocks used
 in block patterns in Twenty Twenty-Two, where this is particularly
 critical as WordPress core cannot backfill the attributes for those
 images, as their sources are not part of the Media Library.

 Props spacedmonkey, thekt12, mukesh27, flixos90.
 Fixes #59256.
 }}}

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


More information about the wp-trac mailing list