Skip to content

Commit

Permalink
Remove str_replace for decoding attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jul 27, 2022
1 parent c0a8fa4 commit 9554938
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/php/test-class-amp-youtube-embed-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,6 @@ public function test__conversion( $source, $expected, $fallback_for_expected = n

$filtered_content = apply_filters( 'the_content', $source );

// Remove new decoding attribute.
$expected = str_replace( ' decoding="async"', '', $expected );

if (
version_compare( strtok( get_bloginfo( 'version' ), '-' ), '5.1', '<' )
&& null !== $fallback_for_expected
Expand Down

0 comments on commit 9554938

Please sign in to comment.