Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is because the check for adding 'autoplay', 'enablejsapi', 'loop', and 'modestbranding' to the src url only check of the option is set, they do not check the value of the option, and if it is set to either true or false, the URL sets it to true.
if (isset($variables['options'][$option])) {
$query[$option] = 1;
}
should be
if (isset($variables['options'][$option]) && $variables['options'][$option]) {
$query[$option] = 1;
}
Comment | File | Size | Author |
---|---|---|---|
media_youtube-autoplay-fix.patch | 601 bytes | jenlampton | |
Comments
Comment #3
joseph.olstadFixed, thanks Jen!