- Timestamp:
- 08/04/2020 12:45:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r48649 r48716 2686 2686 <div class="wp-playlist wp-<?php echo $safe_type; ?>-playlist wp-playlist-<?php echo $safe_style; ?>"> 2687 2687 <?php if ( 'audio' === $atts['type'] ) : ?> 2688 <div class="wp-playlist-current-item"></div>2688 <div class="wp-playlist-current-item"></div> 2689 2689 <?php endif ?> 2690 <<?php echo $safe_type; ?> controls="controls" preload="none" width=" 2691 <?php 2692 echo (int) $theme_width; 2693 ?> 2694 " 2695 <?php 2696 if ( 'video' === $safe_type ) : 2697 echo ' height="', (int) $theme_height, '"'; 2698 endif; 2699 ?> 2690 <<?php echo $safe_type; ?> controls="controls" preload="none" width="<?php echo (int) $theme_width; ?>" 2691 <?php 2692 if ( 'video' === $safe_type ) { 2693 echo ' height="', (int) $theme_height, '"'; 2694 } 2695 ?> 2700 2696 ></<?php echo $safe_type; ?>> 2701 2697 <div class="wp-playlist-next"></div> … … 2703 2699 <noscript> 2704 2700 <ol> 2705 <?php2706 foreach ( $attachments as $att_id => $attachment ) {2707 printf( '<li>%s</li>', wp_get_attachment_link( $att_id ) );2708 }2709 ?>2701 <?php 2702 foreach ( $attachments as $att_id => $attachment ) { 2703 printf( '<li>%s</li>', wp_get_attachment_link( $att_id ) ); 2704 } 2705 ?> 2710 2706 </ol> 2711 2707 </noscript> … … 3208 3204 3209 3205 $html = ''; 3206 3210 3207 if ( 'mediaelement' === $library && 1 === $instance ) { 3211 3208 $html .= "<!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->\n"; 3212 3209 } 3210 3213 3211 $html .= sprintf( '<video %s controls="controls">', join( ' ', $attr_strings ) ); 3214 3212 3215 3213 $fileurl = ''; 3216 3214 $source = '<source type="%s" src="%s" />'; 3215 3217 3216 foreach ( $default_types as $fallback ) { 3218 3217 if ( ! empty( $atts[ $fallback ] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.