Ticket #40590: 40590-3.diff
| File 40590-3.diff, 963 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 ) );2584 2583 2585 if ( isset( $attr['controls'] ) && in_array( $attr['controls'], array( 'false', 'off', '0' ), true ) ) { 2584 if( isset( $attr['controls'] )) 2585 { 2586 if ( in_array( $attr['controls'], array( 'true', 'on', '1' ), true ) ) { 2587 $html .= sprintf( '<video %s controls="controls">', join( ' ', $attr_strings ) ); 2588 } else { 2589 $html .= sprintf( '<video %s>', join( ' ', $attr_strings ) ); 2590 } 2591 } 2592 else 2593 { 2586 2594 $html .= sprintf( '<video %s>', join( ' ', $attr_strings ) ); 2587 } else {2588 $html .= sprintf( '<video %s controls="controls">', join( ' ', $attr_strings ) );2589 2595 } 2590 2596 2591 2597 $fileurl = '';