Ticket #36888: 36888.patch
File 36888.patch, 1.4 KB (added by , 9 years ago) |
---|
-
src/wp-includes/media.php
2052 2052 echo (int) $theme_width; 2053 2053 ?>"<?php if ( 'video' === $safe_type ): 2054 2054 echo ' height="', (int) $theme_height, '"'; 2055 else:2056 echo ' style="visibility: hidden"';2057 2055 endif; ?>></<?php echo $safe_type ?>> 2058 2056 <div class="wp-playlist-next"></div> 2059 2057 <div class="wp-playlist-prev"></div> … … 2163 2161 * @type string $autoplay The 'autoplay' attribute for the `<audio>` element. Default empty. 2164 2162 * @type string $preload The 'preload' attribute for the `<audio>` element. Default 'none'. 2165 2163 * @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%;'. 2167 2165 * } 2168 2166 * @param string $content Shortcode content. 2169 2167 * @return string|void HTML content to display audio. … … 2200 2198 'autoplay' => '', 2201 2199 'preload' => 'none', 2202 2200 'class' => 'wp-audio-shortcode', 2203 'style' => 'width: 100%; visibility: hidden;'2201 'style' => 'width: 100%;' 2204 2202 ); 2205 2203 foreach ( $default_types as $type ) { 2206 2204 $defaults_atts[$type] = '';