diff --git a/wp-includes/media.php b/wp-includes/media.php index a8b26a53b7..fde8b10445 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -860,7 +860,7 @@ function wp_audio_shortcode( $attr ) { 'src' => '', 'loop' => '', 'autoplay' => '', - 'preload' => 'none' + 'preload' => 'none' ); foreach ( $default_types as $type ) $defaults_atts[$type] = ''; @@ -872,7 +872,7 @@ function wp_audio_shortcode( $attr ) { if ( ! empty( $src ) ) { $type = wp_check_filetype( $src ); if ( ! in_array( $type['ext'], $default_types ) ) - return sprintf( '%s', esc_url( $src ), esc_html( $src ) ); + return sprintf( '%s', esc_url( $src ), esc_html( $src ) ); $primary = true; array_unshift( $default_types, 'src' ); } else { @@ -1007,7 +1007,7 @@ function wp_video_shortcode( $attr ) { if ( ! empty( $src ) ) { $type = wp_check_filetype( $src ); if ( ! in_array( $type['ext'], $default_types ) ) - return sprintf( '%s', esc_url( $src ), esc_html( $src ) ); + return sprintf( '%s', esc_url( $src ), esc_html( $src ) ); $primary = true; array_unshift( $default_types, 'src' ); } else {