Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54192, comment 2


Ignore:
Timestamp:
09/27/2021 08:01:53 PM (3 years ago)
Author:
strarsis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54192, comment 2

    initial v1  
    22> 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.
    33
    4 How are these attributes added later? Does WordPress parse the HTML and add these directly?
    5 The function uses a filter, but it doesn't seem to be used elsewhere as the secret and sizes attributes are missing.
     4How are these attributes added later? Does WordPress parse the HTML and add them directly?
     5The function uses a filter, but it doesn't seem to be used elsewhere as the srcset and sizes attributes are missing.
    66https://github.com/WordPress/WordPress/blob/07139653b9f1b8b1cc88195b971e96597fbc8b10/wp-includes/theme.php#L1200