Media: unhide audio fallback
Introduced in [28182]. Fixes #36888. Built from https://develop.svn.wordpress.org/trunk@37556 git-svn-id: http://core.svn.wordpress.org/trunk@37524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e8660d53a2
commit
2934f338cf
|
@ -2052,8 +2052,6 @@ function wp_playlist_shortcode( $attr ) {
|
||||||
echo (int) $theme_width;
|
echo (int) $theme_width;
|
||||||
?>"<?php if ( 'video' === $safe_type ):
|
?>"<?php if ( 'video' === $safe_type ):
|
||||||
echo ' height="', (int) $theme_height, '"';
|
echo ' height="', (int) $theme_height, '"';
|
||||||
else:
|
|
||||||
echo ' style="visibility: hidden"';
|
|
||||||
endif; ?>></<?php echo $safe_type ?>>
|
endif; ?>></<?php echo $safe_type ?>>
|
||||||
<div class="wp-playlist-next"></div>
|
<div class="wp-playlist-next"></div>
|
||||||
<div class="wp-playlist-prev"></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 $autoplay The 'autoplay' attribute for the `<audio>` element. Default empty.
|
||||||
* @type string $preload The 'preload' attribute for the `<audio>` element. Default 'none'.
|
* @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 $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.
|
* @param string $content Shortcode content.
|
||||||
* @return string|void HTML content to display audio.
|
* @return string|void HTML content to display audio.
|
||||||
|
@ -2200,7 +2198,7 @@ function wp_audio_shortcode( $attr, $content = '' ) {
|
||||||
'autoplay' => '',
|
'autoplay' => '',
|
||||||
'preload' => 'none',
|
'preload' => 'none',
|
||||||
'class' => 'wp-audio-shortcode',
|
'class' => 'wp-audio-shortcode',
|
||||||
'style' => 'width: 100%; visibility: hidden;'
|
'style' => 'width: 100%;'
|
||||||
);
|
);
|
||||||
foreach ( $default_types as $type ) {
|
foreach ( $default_types as $type ) {
|
||||||
$defaults_atts[$type] = '';
|
$defaults_atts[$type] = '';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-alpha-37555';
|
$wp_version = '4.6-alpha-37556';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue