Ticket #40590: 40590-2.diff
| File 40590-2.diff, 708 bytes (added by , 9 years ago) |
|---|
-
.php
old new 2580 2580 if ( 'mediaelement' === $library && 1 === $instance ) { 2581 2581 $html .= "<!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->\n"; 2582 2582 } 2583 $html .= sprintf( '<video %s controls="controls">', join( ' ', $attr_strings ) ); 2583 2584 2585 if ( isset( $attr['controls'] ) && in_array( $attr['controls'], array( 'false', 'off', '0' ), true ) ) { 2586 $html .= sprintf( '<video %s>', join( ' ', $attr_strings ) ); 2587 } else { 2588 $html .= sprintf( '<video %s controls="controls">', join( ' ', $attr_strings ) ); 2589 } 2584 2590 2585 2591 $fileurl = ''; 2586 2592 $source = '<source type="%s" src="%s" />';