Media: unhide audio fallback

Introduced in [28182].
Fixes #36888.



git-svn-id: https://develop.svn.wordpress.org/trunk@37556 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ella Iseulde Van Dorpe 2016-05-25 13:32:33 +00:00
parent 7de95455cc
commit e57b62f5d6
1 changed files with 2 additions and 4 deletions

View File

@ -2052,8 +2052,6 @@ function wp_playlist_shortcode( $attr ) {
echo (int) $theme_width;
?>"<?php if ( 'video' === $safe_type ):
echo ' height="', (int) $theme_height, '"';
else:
echo ' style="visibility: hidden"';
endif; ?>></<?php echo $safe_type ?>>
<div class="wp-playlist-next"></div>
<div class="wp-playlist-prev"></div>
@ -2163,7 +2161,7 @@ function wp_get_attachment_id3_keys( $attachment, $context = 'display' ) {
* @type string $autoplay The 'autoplay' attribute for the `<audio>` element. Default empty.
* @type string $preload The 'preload' attribute for the `<audio>` element. Default 'none'.
* @type string $class The 'class' attribute for the `<audio>` element. Default 'wp-audio-shortcode'.
* @type string $style The 'style' attribute for the `<audio>` element. Default 'width: 100%; visibility: hidden;'.
* @type string $style The 'style' attribute for the `<audio>` element. Default 'width: 100%;'.
* }
* @param string $content Shortcode content.
* @return string|void HTML content to display audio.
@ -2200,7 +2198,7 @@ function wp_audio_shortcode( $attr, $content = '' ) {
'autoplay' => '',
'preload' => 'none',
'class' => 'wp-audio-shortcode',
'style' => 'width: 100%; visibility: hidden;'
'style' => 'width: 100%;'
);
foreach ( $default_types as $type ) {
$defaults_atts[$type] = '';