Hello @metaphysician
We are going to release our fixed version very shortly so till then you can wait or you can try this solution bellow.
wp-content/plugins/tutor/classes/Course_Embed.php go here and replace the full function name oembed_iframe_overrides
with this.
public static function oembed_iframe_overrides( $html, $url, $attr ) {
$post_id = url_to_postid( $url );
if ( ! $post_id || tutor()->course_post_type !== get_post_type( $post_id ) ) {
return $html;
}
if ( strpos( $html, '<iframe' ) !== false ) {
$html = str_replace(
'<iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; clip: rect(1px, 1px, 1px, 1px);"',
'<iframe class="wp-embedded-content" sandbox="allow-forms allow-popups allow-scripts allow-same-origin allow-top-navigation" security="restricted" ',
$html
);
$html = preg_replace( '/( height=".*")/i', ' height="620" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" ', $html );
$html = str_replace(
'<blockquote class="wp-embedded-content"',
'<blockquote class="wp-embedded-content" style="display:none" ',
$html
);
return $html;
} else {
return $html;
}
}