Skip to content

Commit

Permalink
update the usage of insertYoutubeThumbnailScript
Browse files Browse the repository at this point in the history
  • Loading branch information
wordpressfan committed Jan 21, 2025
1 parent c9a4333 commit 7342b61
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions inc/Engine/Media/Lazyload/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,11 @@ public function insert_youtube_thumbnail_script() {

$this->assets->insertYoutubeThumbnailScript(
[
'resolution' => $thumbnail_resolution,
'lazy_image' => (bool) $this->options->get( 'lazyload' ),
'native' => $this->is_native_images(),
'extension' => $extension,
'resolution' => $thumbnail_resolution,
'lazy_image' => (bool) $this->options->get( 'lazyload' ),
'native' => $this->is_native_images(),
'extension' => $extension,
'button_aria_label' => esc_html__( 'Play Youtube video', 'rocket' ),
]
);
}
Expand Down

0 comments on commit 7342b61

Please sign in to comment.