Skip to content

Commit

Permalink
Update checking for crossorigin attrs on img and video tags
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Aug 25, 2024
1 parent 138b2b8 commit 03fc900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static function ( string $value ): bool {
);

$crossorigin = $processor->get_attribute( 'crossorigin' );
if ( is_string( $crossorigin ) ) {
if ( null !== $crossorigin ) {
$link_attributes['crossorigin'] = 'use-credentials' === $crossorigin ? 'use-credentials' : 'anonymous';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static function ( string $value ): bool {
);

$crossorigin = $processor->get_attribute( 'crossorigin' );
if ( is_string( $crossorigin ) ) {
if ( null !== $crossorigin ) {
$link_attributes['crossorigin'] = 'use-credentials' === $crossorigin ? 'use-credentials' : 'anonymous';
}

Expand Down

0 comments on commit 03fc900

Please sign in to comment.