Skip to content

Commit c0f2396

Browse files
committed
2020 is now the default ableplayer skin, don't set attribute if that's the value.
1 parent b060871 commit c0f2396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ableplayer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
420420
'volume' => '',
421421
'seekinterval' => '',
422422
'nowplaying' => '',
423-
'skin' => '2020',
423+
'skin' => '',
424424
),
425425
$atts,
426426
'ableplayer'
@@ -542,7 +542,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
542542
if ( ! empty( $all_atts['nowplaying'] ) ) {
543543
$o .= ' data-show-now-playing="' . esc_attr( $all_atts['nowplaying'] ) . '"';
544544
}
545-
if ( ! empty( $all_atts['skin'] ) ) {
545+
if ( ! empty( $all_atts['skin'] ) && '2020' !== $all_atts['skin'] ) {
546546
$o .= ' data-skin="' . esc_attr( $all_atts['skin'] ) . '"';
547547
}
548548
if ( ! empty( $all_atts['youtube-id'] ) ) {

0 commit comments

Comments
 (0)