Changeset 54128 for trunk/src/wp-includes/media.php
- Timestamp:
- 09/11/2022 10:17:04 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r54097 r54128 3220 3220 * @type string $loop The 'loop' attribute for the `<video>` element. Default empty. 3221 3221 * @type string $autoplay The 'autoplay' attribute for the `<video>` element. Default empty. 3222 * @type string $muted The 'muted' attribute for the `<video>` element. Default false. 3222 3223 * @type string $preload The 'preload' attribute for the `<video>` element. 3223 3224 * Default 'metadata'. … … 3264 3265 'loop' => '', 3265 3266 'autoplay' => '', 3267 'muted' => 'false', 3266 3268 'preload' => 'metadata', 3267 3269 'width' => 640, … … 3391 3393 'loop' => wp_validate_boolean( $atts['loop'] ), 3392 3394 'autoplay' => wp_validate_boolean( $atts['autoplay'] ), 3395 'muted' => wp_validate_boolean( $atts['muted'] ), 3393 3396 'preload' => $atts['preload'], 3394 3397 ); 3395 3398 3396 3399 // These ones should just be omitted altogether if they are blank. 3397 foreach ( array( 'poster', 'loop', 'autoplay', 'preload' ) as $a ) {3400 foreach ( array( 'poster', 'loop', 'autoplay', 'preload', 'muted' ) as $a ) { 3398 3401 if ( empty( $html_atts[ $a ] ) ) { 3399 3402 unset( $html_atts[ $a ] );
Note: See TracChangeset
for help on using the changeset viewer.