Changeset 60285
- Timestamp:
- 06/05/2025 02:00:28 PM (5 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r59987 r60285 2993 2993 wp_enqueue_style( 'wp-mediaelement' ); 2994 2994 wp_enqueue_script( 'wp-playlist' ); 2995 ?>2996 <!--[if lt IE 9]><script>document.createElement('<?php echo esc_js( $type ); ?>');</script><![endif]-->2997 <?php2998 2995 add_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 ); 2999 2996 add_action( 'admin_footer', 'wp_underscore_playlist_templates', 0 ); … … 3503 3500 } 3504 3501 3505 $html = ''; 3506 3507 if ( 'mediaelement' === $library && 1 === $instance ) { 3508 $html .= "<!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]-->\n"; 3509 } 3510 3511 $html .= sprintf( '<audio %s controls="controls">', implode( ' ', $attr_strings ) ); 3512 3502 $html = sprintf( '<audio %s controls="controls">', implode( ' ', $attr_strings ) ); 3513 3503 $fileurl = ''; 3514 3504 $source = '<source type="%s" src="%s" />'; … … 3788 3778 } 3789 3779 3790 $html = ''; 3791 3792 if ( 'mediaelement' === $library && 1 === $instance ) { 3793 $html .= "<!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->\n"; 3794 } 3795 3796 $html .= sprintf( '<video %s controls="controls">', implode( ' ', $attr_strings ) ); 3797 3780 $html = sprintf( '<video %s controls="controls">', implode( ' ', $attr_strings ) ); 3798 3781 $fileurl = ''; 3799 3782 $source = '<source type="%s" src="%s" />'; -
trunk/tests/phpunit/tests/media.php
r60251 r60285 1000 1000 1001 1001 $expected = '<div style="width: ' . $width . 'px;" class="wp-video">' . 1002 "<!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->\n" .1003 1002 '<video class="wp-video-shortcode" id="video-' . $post_id . '-1" width="' . $width . '" height="' . $h . '" preload="metadata" controls="controls">' . 1004 1003 '<source type="video/mp4" src="http://domain.tld/wp-content/uploads/2013/12/xyz.mp4?_=1" />' .
Note: See TracChangeset
for help on using the changeset viewer.