diff --git wp-includes/media.php wp-includes/media.php
index 1362f78..a0db802 100644
|
|
function wp_audio_shortcode( $attr ) { |
856 | 856 | $audio = null; |
857 | 857 | |
858 | 858 | $default_types = wp_get_audio_extensions(); |
859 | | $defaults_atts = array( 'src' => '' ); |
| 859 | $defaults_atts = array( |
| 860 | 'src' => '', |
| 861 | 'controls' => 'controls', |
| 862 | 'preload' = 'none', |
| 863 | 'autoplay' => 'false', |
| 864 | 'loop' => 'false', |
| 865 | 'muted' => 'false', |
| 866 | 'volume' => '', |
| 867 | ); |
860 | 868 | foreach ( $default_types as $type ) |
861 | 869 | $defaults_atts[$type] = ''; |
862 | 870 | |
… |
… |
function wp_audio_shortcode( $attr ) { |
904 | 912 | sprintf( 'id="audio-%d-%d"', $post_id, $instances ), |
905 | 913 | ); |
906 | 914 | |
907 | | $html = sprintf( '<audio %s controls="controls" preload="none">', join( ' ', $atts ) ); |
| 915 | $html = sprintf( '<audio %s>', join( ' ', $atts ) ); |
908 | 916 | |
909 | 917 | $fileurl = ''; |
910 | 918 | $source = '<source type="%s" src="%s" />'; |
… |
… |
function wp_video_shortcode( $attr ) { |
961 | 969 | 'poster' => '', |
962 | 970 | 'height' => 360, |
963 | 971 | 'width' => empty( $content_width ) ? 640 : $content_width, |
| 972 | 'controls' => 'controls', |
| 973 | 'preload' = 'none', |
| 974 | 'autoplay' => 'false', |
| 975 | 'loop' => 'false', |
| 976 | 'muted' => 'false', |
964 | 977 | ); |
965 | 978 | |
966 | 979 | foreach ( $default_types as $type ) |
… |
… |
function wp_video_shortcode( $attr ) { |
1027 | 1040 | if ( ! empty( $poster ) ) |
1028 | 1041 | $atts[] = sprintf( 'poster="%s"', esc_url( $poster ) ); |
1029 | 1042 | |
1030 | | $html = sprintf( '<video %s controls="controls" preload="none">', join( ' ', $atts ) ); |
| 1043 | $html = sprintf( '<video %s>', join( ' ', $atts ) ); |
1031 | 1044 | |
1032 | 1045 | $fileurl = ''; |
1033 | 1046 | $source = '<source type="%s" src="%s" />'; |