[wp-trac] [WordPress Trac] #53232: Add async decoding attribute as default to the HTML image tags generated by WordPress

WordPress Trac noreply at wordpress.org
Thu Jun 9 16:19:53 UTC 2022


#53232: Add async decoding attribute as default to the HTML image tags generated by
WordPress
-------------------------------------------------+-------------------------
 Reporter:  isaumya                              |       Owner:
                                                 |  adamsilverstein
     Type:  feature request                      |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note needs-refresh early                       |  performance
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53481" 53481]:
 {{{
 #!CommitTicketReference repository="" revision="53481"
 Media: Some documentation and test improvements for
 `wp_img_tag_add_decoding_attr()`:

 * Add a `@since` note for the `decoding` attribute in
 `wp_get_attachment_image()`.
 * Adjust `wp_img_tag_add_decoding_attr()` DocBlocks per the documentation
 standards.
 * Wrap some long `sprintf()` calls in unit tests for better readability.
 In at least one case, `the_content` was unnecessarily passed to
 `sprintf()` as an extra (unused) parameter.

 Follow-up to [53480].

 See #53232.
 }}}

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


More information about the wp-trac mailing list