[wp-trac] [WordPress Trac] #62413: WordPress 6.7 Auto-sizes Reducing Image Sizes

WordPress Trac noreply at wordpress.org
Fri Nov 15 18:38:07 UTC 2024


#62413: WordPress 6.7 Auto-sizes Reducing Image Sizes
-------------------------------------------------+-------------------------
 Reporter:  dooperweb                            |       Owner:  joemcgill
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.7.1
Component:  Media                                |     Version:  6.7
 Severity:  major                                |  Resolution:
 Keywords:  has-testing-info has-patch has-      |     Focuses:
  unit-tests                                     |  performance
-------------------------------------------------+-------------------------

Comment (by joemcgill):

 While investigating this, it occurred to me that
 `wp_img_tag_add_auto_sizes()` doesn't explicitly confirm that a `width`
 attribute is present before applying auto-sizes. That said, Core won't add
 lazy-loading in this case, so normally auto-sizes still won't apply. Even
 so, I've added a PR that is mostly a hardening measure to ensure this
 can't occur.

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


More information about the wp-trac mailing list