Changeset 36240 for trunk/src/wp-includes/media.php
- Timestamp:
- 01/09/2016 02:17:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r36121 r36240 2164 2164 * @type string $loop The 'loop' attribute for the `<audio>` element. Default empty. 2165 2165 * @type string $autoplay The 'autoplay' attribute for the `<audio>` element. Default empty. 2166 * @type string $preload The 'preload' attribute for the `<audio>` element. Default empty.2166 * @type string $preload The 'preload' attribute for the `<audio>` element. Default 'none'. 2167 2167 * @type string $class The 'class' attribute for the `<audio>` element. Default 'wp-audio-shortcode'. 2168 * @type string $style The 'style' attribute for the `<audio>` element. Default 'width: 100% '.2168 * @type string $style The 'style' attribute for the `<audio>` element. Default 'width: 100%; visibility: hidden;'. 2169 2169 * } 2170 2170 * @param string $content Shortcode content. … … 2201 2201 'loop' => '', 2202 2202 'autoplay' => '', 2203 'preload' => 'none' 2203 'preload' => 'none', 2204 'class' => 'wp-audio-shortcode', 2205 'style' => 'width: 100%; visibility: hidden;' 2204 2206 ); 2205 2207 foreach ( $default_types as $type ) { … … 2263 2265 * @param string $class CSS class or list of space-separated classes. 2264 2266 */ 2267 $atts['class'] = apply_filters( 'wp_audio_shortcode_class', $atts['class'] ); 2268 2265 2269 $html_atts = array( 2266 'class' => apply_filters( 'wp_audio_shortcode_class', 'wp-audio-shortcode' ),2270 'class' => $atts['class'], 2267 2271 'id' => sprintf( 'audio-%d-%d', $post_id, $instance ), 2268 2272 'loop' => wp_validate_boolean( $atts['loop'] ), 2269 2273 'autoplay' => wp_validate_boolean( $atts['autoplay'] ), 2270 2274 'preload' => $atts['preload'], 2271 'style' => 'width: 100%; visibility: hidden;',2275 'style' => $atts['style'], 2272 2276 ); 2273 2277 … … 2408 2412 'width' => 640, 2409 2413 'height' => 360, 2414 'class' => 'wp-video-shortcode', 2410 2415 ); 2411 2416 … … 2497 2502 * @param string $class CSS class or list of space-separated classes. 2498 2503 */ 2504 $atts['class'] = apply_filters( 'wp_video_shortcode_class', $atts['class'] ); 2505 2499 2506 $html_atts = array( 2500 'class' => apply_filters( 'wp_video_shortcode_class', 'wp-video-shortcode' ),2507 'class' => $atts['class'], 2501 2508 'id' => sprintf( 'video-%d-%d', $post_id, $instance ), 2502 2509 'width' => absint( $atts['width'] ),
Note: See TracChangeset
for help on using the changeset viewer.