[wp-trac] [WordPress Trac] #34430: Improve the performance of wp_make_content_images_responsive()

WordPress Trac noreply at wordpress.org
Wed Oct 28 20:00:17 UTC 2015


#34430: Improve the performance of wp_make_content_images_responsive()
------------------------------------------------+------------------------
 Reporter:  joemcgill                           |       Owner:  joemcgill
     Type:  defect (bug)                        |      Status:  assigned
 Priority:  normal                              |   Milestone:  4.4
Component:  Media                               |     Version:  trunk
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch needs-testing needs-docs  |     Focuses:
------------------------------------------------+------------------------

Comment (by azaozz):

 In [changeset:"35419"]:
 {{{
 #!CommitTicketReference repository="" revision="35419"
 Responsive images:
 - Check if wp_get_attachment_metadata() has returned an array to prevent
 errors when using SVGs.
 - Only add the srcset attribute if there will be a sizes attribute.
 - Better filter names.
 - Some more inline docs fixes.

 Props jaspermdegroot.
 See #34430.
 }}}

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


More information about the wp-trac mailing list