Skip to content

Commit

Permalink
Update img sanitizer to avoid adding fetchpriority attribute to amp…
Browse files Browse the repository at this point in the history
…-img
  • Loading branch information
thelovekesh committed Oct 25, 2023
1 parent 24d0990 commit 67ebeea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/sanitizers/class-amp-img-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ private function filter_attributes( $attributes ) {
}
break;

// Avoid adding `fetchpriority` to amp-img element.
case Attribute::FETCHPRIORITY:
break;

default:
$out[ $name ] = $value;
break;
Expand Down

0 comments on commit 67ebeea

Please sign in to comment.