[wp-trac] [WordPress Trac] #48706: Post export does not include srcset attributes

WordPress Trac noreply at wordpress.org
Tue Nov 19 09:34:14 UTC 2019


#48706: Post export does not include srcset attributes
----------------------------+------------------------------
 Reporter:  rogeriomoreira  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Export          |     Version:  5.3
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by rogeriomoreira):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Replying to [comment:1 SergeyBiryukov]:
 > Hi there, welcome to WordPress Trac! Thanks for the report.
 >
 > This is probably intentional, as `srcset` and `sizes` attributes are
 added by
 [https://developer.wordpress.org/reference/functions/wp_make_content_images_responsive/
 wp_make_content_images_responsive()] at runtime via `the_content` filter,
 and are not saved to the database. This makes it easier to update image
 sizes for uploaded files in the future and regenerate thumbnails as
 needed.

 Thanks. Didn't know about that filter, everything makes sense now :)

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


More information about the wp-trac mailing list