From 50a1ab0c8e6b0bc42741de891e826a4967bc12be Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 29 Jul 2013 06:51:46 +0000 Subject: [PATCH] Update HTML classes in the audio and video shortcodes. props rfair404. fixes #24820. git-svn-id: https://develop.svn.wordpress.org/trunk@24857 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/media.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {