Skip to content

Commit 090e4af

Browse files
committed
Update ableplayer.php
1 parent 85e1553 commit 090e4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ableplayer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
440440
return false;
441441
} else {
442442
$type = get_post_mime_type( $all_atts['media-id'] );
443-
$type = ( $type === 'video/quicktime' ) ? 'video/mp4' : $type;
443+
$type = ( 'video/quicktime' === $type ) ? 'video/mp4' : $type;
444444
$element = ( wp_attachment_is( 'audio', $all_atts['media-id'] ) ) ? 'audio' : 'video';
445445
$source = '<source type="' . esc_attr( $type ) . '" src="' . esc_url( $media_id ) . '"%datasrc%>' . PHP_EOL;
446446
}

0 commit comments

Comments
 (0)