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!