Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #34678, comment 9


Ignore:
Timestamp:
11/21/2015 09:47:15 PM (11 years ago)
Author:
azaozz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34678, comment 9

    v2 v3  
    77If somebody wants to change the sizes attribute, they can use the filter. Then we are in better position to ensure backwards compatibility one day. If somebody adds invalid/inconsistent attributes, they will get invalid HTML.
    88
    9 Alternatively we can check for the presence of `sizes` and `srcset`, and if either is present can skip generating both for that image completely.
     9Alternatively we can check for the presence of `sizes` and `srcset`, and if either is present can skip generating both for that image.