Skip to content

Commit 6ff3594

Browse files
committed
Incorrect array key for shortcode attribute 'descriptions'.
1 parent a7d291a commit 6ff3594

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
@@ -467,7 +467,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
467467
);
468468
// Switch locale to BCP47 syntax.
469469
$default_lang = str_replace( '_', '-', get_locale() );
470-
if ( $all_atts['captions'] || $all_atts['subtitles'] || $all_atts['description'] || $all_atts['chapters'] ) {
470+
if ( $all_atts['captions'] || $all_atts['subtitles'] || $all_atts['descriptions'] || $all_atts['chapters'] ) {
471471
foreach ( $kinds as $kind => $default_label ) {
472472
$track = '';
473473
if ( ! empty( $all_atts[ $kind ] ) ) {

0 commit comments

Comments
 (0)