Changes between Initial Version and Version 1 of Ticket #54192, comment 2
- Timestamp:
- 09/27/2021 08:01:53 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #54192, comment 2
initial v1 2 2 > The `srcset` and `sizes` are added later, for all the images that have a `wp-image-*` class. The image id is needed to do the lookup for the data to use. 3 3 4 How are these attributes added later? Does WordPress parse the HTML and add the sedirectly?5 The function uses a filter, but it doesn't seem to be used elsewhere as the s ecret and sizes attributes are missing.4 How are these attributes added later? Does WordPress parse the HTML and add them directly? 5 The function uses a filter, but it doesn't seem to be used elsewhere as the srcset and sizes attributes are missing. 6 6 https://github.com/WordPress/WordPress/blob/07139653b9f1b8b1cc88195b971e96597fbc8b10/wp-includes/theme.php#L1200