Skip to content

Commit a68da64

Browse files
committed
deploy: d6e99f7
1 parent 7d83d26 commit a68da64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ableplayer.php.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@
473473
$atts,
474474
'ableplayer'
475475
);
476+
// Globally remove white space on attributes.
477+
$all_atts = map_deep( $all_atts, 'trim' );
476478
// If vimeo ID is set, enqueue the vimeo player.
477479
if ( $all_atts['vimeo-id'] ) {
478480
$debug = ( SCRIPT_DEBUG || ABLEPLAYER_DEBUG ) ? true : false;
@@ -571,6 +573,7 @@
571573
// Allow passing an attachment ID as poster.
572574
$poster = $all_atts['poster'];
573575
if ( is_numeric( $poster ) ) {
576+
$poster = absint( $poster );
574577
$poster = wp_get_attachment_image_url( $poster, 'large' );
575578
}
576579
$o .= ' poster="' . esc_attr( $poster ) . '"';

0 commit comments

Comments
 (0)