Ticket #25312: 25312.patch
| File 25312.patch, 1.6 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/media.php
865 865 foreach ( $default_types as $type ) 866 866 $defaults_atts[$type] = ''; 867 867 868 $ atts = shortcode_atts( $defaults_atts, $attr, 'audio' );869 extract( $ atts );868 $shortcode_atts = shortcode_atts( $defaults_atts, $attr, 'audio' ); 869 extract( $shortcode_atts ); 870 870 871 871 $primary = false; 872 872 if ( ! empty( $src ) ) { … … 944 944 $html .= wp_mediaelement_fallback( $fileurl ); 945 945 $html .= '</audio>'; 946 946 947 return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library );947 return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library, $shortcode_atts ); 948 948 } 949 949 add_shortcode( 'audio', apply_filters( 'wp_audio_shortcode_handler', 'wp_audio_shortcode' ) ); 950 950 … … 992 992 foreach ( $default_types as $type ) 993 993 $defaults_atts[$type] = ''; 994 994 995 $ atts = shortcode_atts( $defaults_atts, $attr, 'video' );996 extract( $ atts );995 $shortcode_atts = shortcode_atts( $defaults_atts, $attr, 'video' ); 996 extract( $shortcode_atts ); 997 997 998 998 $w = $width; 999 999 $h = $height; … … 1088 1088 $html .= '</video>'; 1089 1089 1090 1090 $html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html ); 1091 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library );1091 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library, $shortcode_atts ); 1092 1092 } 1093 1093 add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ) ); 1094 1094