Skip to content

Commit 96d318a

Browse files
committed
Don't absint string value for default heading.
1 parent e6a4d58 commit 96d318a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inc/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function ableplayer_update_settings( $post ) {
260260
$hide_controls = ( ! empty( $post['hide_controls'] ) && 'on' === $post['hide_controls'] ) ? 'true' : 'false';
261261
$default_speed = ( isset( $post['default_speed'] ) ) ? $post['default_speed'] : 'animals';
262262
$seek_interval = ( isset( $post['seek_interval'] ) && $post['seek_interval'] > 5 ) ? absint( $post['seek_interval'] ) : '';
263-
$default_heading = ( isset( $post['default_heading'] ) ) ? absint( $post['default_heading'] ) : 'auto';
263+
$default_heading = ( isset( $post['default_heading'] ) && 'auto' !== $post['default_heading'] ) ? absint( $post['default_heading'] ) : 'auto';
264264

265265
$settings['replace_video'] = $replace_video;
266266
$settings['replace_audio'] = $replace_audio;

0 commit comments

Comments
 (0)