[wp-trac] [WordPress Trac] #56969: decoding="async" breaks my site

WordPress Trac noreply at wordpress.org
Fri Nov 11 02:26:18 UTC 2022


#56969: decoding="async" breaks my site
-------------------------------------------------+-------------------------
 Reporter:  rodricus                             |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1.1
Component:  Media                                |     Version:  6.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  reporter-feedback has-patch has-     |     Focuses:
  unit-tests dev-feedback commit fixed-major     |  performance
-------------------------------------------------+-------------------------
Changes (by desrosj):

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


Comment:

 In [changeset:"54807" 54807]:
 {{{
 #!CommitTicketReference repository="" revision="54807"
 Media: Prevent decoding attribute corrupting JSON data.

 Workaround `wp_img_tag_add_decoding_attr()` potentially breaking
 JavaScript and JSON data by limiting the addition of the decoding
 attribute to image tags using unescaped double quoted attributes `src`
 attributes.

 Props rodricus, TimothyBlynJacobs, joelmadigan, mw108, adamsilverstein,
 flixos90, desrosj, mukesh27, peterwilsoncc.
 Merges [54802] to the 6.1 branch.
 Fixes #56969.
 }}}

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


More information about the wp-trac mailing list