We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d83d26 commit a68da64Copy full SHA for a68da64
ableplayer.php.html
@@ -473,6 +473,8 @@
473
$atts,
474
'ableplayer'
475
);
476
+ // Globally remove white space on attributes.
477
+ $all_atts = map_deep( $all_atts, 'trim' );
478
// If vimeo ID is set, enqueue the vimeo player.
479
if ( $all_atts['vimeo-id'] ) {
480
$debug = ( SCRIPT_DEBUG || ABLEPLAYER_DEBUG ) ? true : false;
@@ -571,6 +573,7 @@
571
573
// Allow passing an attachment ID as poster.
572
574
$poster = $all_atts['poster'];
575
if ( is_numeric( $poster ) ) {
576
+ $poster = absint( $poster );
577
$poster = wp_get_attachment_image_url( $poster, 'large' );
578
}
579
$o .= ' poster="' . esc_attr( $poster ) . '"';
0 commit comments