File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,13 @@ function ableplayer_enqueue_scripts() {
6969 'strategy ' => 'defer ' ,
7070 )
7171 );
72+ $ settings = ableplayer_get_settings ();
73+ unset( $ settings ['last_shortcode ' ] );
7274 wp_localize_script (
7375 'ableplayer-video ' ,
7476 'ableplayer ' ,
7577 array (
76- 'settings ' => ableplayer_get_settings () ,
78+ 'settings ' => $ settings ,
7779 )
7880 );
7981
@@ -435,7 +437,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
435437 'width ' => '' ,
436438 'height ' => '' ,
437439 'heading ' => '' ,
438- 'speed ' => ' animals ' ,
440+ 'speed ' => ableplayer_get_settings ( ' default_speed ' ) ,
439441 'start ' => '' ,
440442 'volume ' => '' ,
441443 'seekinterval ' => '' ,
@@ -556,7 +558,7 @@ function ableplayer_shortcode( $atts, $content = null ) {
556558 if ( ! empty ( $ all_atts ['heading ' ] ) && 'auto ' !== $ all_atts ['heading ' ] ) {
557559 $ o .= ' data-heading-level=" ' . esc_attr ( $ all_atts ['heading ' ] ) . '" ' ;
558560 }
559- if ( ! empty ( $ all_atts ['speed ' ] ) && ableplayer_get_settings ( ' default_speed ' ) !== $ all_atts [ ' speed ' ] ) {
561+ if ( ! empty ( $ all_atts ['speed ' ] ) ) {
560562 $ o .= ' data-speed-icons=" ' . esc_attr ( $ all_atts ['speed ' ] ) . '" ' ;
561563 }
562564 if ( ! empty ( $ all_atts ['start ' ] ) ) {
You can’t perform that action at this time.
0 commit comments