WordPress.org

Make WordPress Core

Ticket #36888: 36888.patch

File 36888.patch, 1.4 KB (added by iseulde, 4 years ago)
  • src/wp-includes/media.php

     
    20522052                echo (int) $theme_width;
    20532053        ?>"<?php if ( 'video' === $safe_type ):
    20542054                echo ' height="', (int) $theme_height, '"';
    2055         else:
    2056                 echo ' style="visibility: hidden"';
    20572055        endif; ?>></<?php echo $safe_type ?>>
    20582056        <div class="wp-playlist-next"></div>
    20592057        <div class="wp-playlist-prev"></div>
     
    21632161 *     @type string $autoplay The 'autoplay' attribute for the `<audio>` element. Default empty.
    21642162 *     @type string $preload  The 'preload' attribute for the `<audio>` element. Default 'none'.
    21652163 *     @type string $class    The 'class' attribute for the `<audio>` element. Default 'wp-audio-shortcode'.
    2166  *     @type string $style    The 'style' attribute for the `<audio>` element. Default 'width: 100%; visibility: hidden;'.
     2164 *     @type string $style    The 'style' attribute for the `<audio>` element. Default 'width: 100%;'.
    21672165 * }
    21682166 * @param string $content Shortcode content.
    21692167 * @return string|void HTML content to display audio.
     
    22002198                'autoplay' => '',
    22012199                'preload'  => 'none',
    22022200                'class'    => 'wp-audio-shortcode',
    2203                 'style'    => 'width: 100%; visibility: hidden;'
     2201                'style'    => 'width: 100%;'
    22042202        );
    22052203        foreach ( $default_types as $type ) {
    22062204                $defaults_atts[$type] = '';