Skip to content

Commit 96b8571

Browse files
committed
Ensure that $type is set
1 parent 96b51a2 commit 96b8571

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ableplayer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
474474
// Shortcode must have one of YouTube, Vimeo, or a local source.
475475
return false;
476476
} else {
477+
$type = false;
477478
if ( $all_atts['media-id'] ) {
478479
// If Video ID is set but is not a valid URL, return.
479480
$media_id = ( is_numeric( $all_atts['media-id'] ) ) ? wp_get_attachment_url( $all_atts['media-id'] ) : $all_atts['media-id'];

0 commit comments

Comments
 (0)