From 54134dd49babedee99cabf2068c32486cff4ba3c Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 9 Jan 2016 14:17:02 +0000 Subject: [PATCH] Media: Fix `wp_audio_shortcode` and `wp_video_shortcode` attributes handling. Although documented, the `class` and `style` attributes were simply ignored. Adds unit tests. Fixes #35367. git-svn-id: https://develop.svn.wordpress.org/trunk@36240 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 19 ++++-- tests/phpunit/tests/media.php | 110 ++++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 7a41653bf2..65842d0176 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2163,9 +2163,9 @@ function wp_get_attachment_id3_keys( $attachment, $context = 'display' ) { * @type string $src URL to the source of the audio file. Default empty. * @type string $loop The 'loop' attribute for the `