Skip to content

Commit

Permalink
Issue #864: Remove <amp-img> sizes attribute if present.
Browse files Browse the repository at this point in the history
An earlier commit only prevented adding it.
This removes the attribute it it's present.
  • Loading branch information
Ryan Kienstra committed Feb 15, 2018
1 parent f95c0be commit 6bd4326
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion includes/sanitizers/class-amp-img-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ private function filter_attributes( $attributes ) {
case 'alt':
case 'class':
case 'srcset':
case 'sizes':
case 'on':
case 'attribution':
$out[ $name ] = $value;
Expand Down

0 comments on commit 6bd4326

Please sign in to comment.