We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96b51a2 commit 96b8571Copy full SHA for 96b8571
1 file changed
src/ableplayer.php
@@ -474,6 +474,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
474
// Shortcode must have one of YouTube, Vimeo, or a local source.
475
return false;
476
} else {
477
+ $type = false;
478
if ( $all_atts['media-id'] ) {
479
// If Video ID is set but is not a valid URL, return.
480
$media_id = ( is_numeric( $all_atts['media-id'] ) ) ? wp_get_attachment_url( $all_atts['media-id'] ) : $all_atts['media-id'];
0 commit comments