Skip to content

Commit

Permalink
Removing attribute filter since autoplay doesn't work if browser does…
Browse files Browse the repository at this point in the history
…n't allow it.
  • Loading branch information
brianhogg committed Sep 20, 2024
1 parent 50bb30f commit 0b8f1eb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions includes/abstracts/abstract.llms.post.model.php
Original file line number Diff line number Diff line change
Expand Up @@ -854,14 +854,7 @@ protected function get_embed( $type = 'video', $prop = '' ) {
$ret = wp_oembed_get( sanitize_url( $url ) );

if ( ! $ret ) {

$shortcode = "[$type";
foreach ( apply_filters( 'llms_embed_shortcode_attributes', array( 'src' => $url ), $type, $this ) as $key => $value ) {
$shortcode .= " $key=\"$value\"";
}
$shortcode .= ']';

$ret = apply_filters( 'llms_embed_shortcode_output', do_shortcode( $shortcode ), $type, $this );
$ret = apply_filters( 'llms_embed_shortcode_output', do_shortcode( sprintf( '[%1$s src="%2$s"]', $type, $url ) ), $type, $this );
}
}
/**
Expand Down

0 comments on commit 0b8f1eb

Please sign in to comment.