Ticket #25313: 25313.3.patch
| File 25313.3.patch, 1.6 KB (added by , 13 years ago) |
|---|
-
src/wp-includes/media.php
848 848 * @return string HTML content to display audio. 849 849 */ 850 850 function wp_audio_shortcode( $attr ) { 851 // Allow plugins to short-circuit the shortcode. 852 $html = apply_filters( 'wp_audio_shortcode_handler', false, $attr ); 853 if ( false !== $html ) 854 return $html; 855 851 856 $post_id = get_post() ? get_the_ID() : 0; 852 857 853 858 static $instances = 0; … … 946 951 947 952 return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library ); 948 953 } 949 add_shortcode( 'audio', apply_filters( 'wp_audio_shortcode_handler', 'wp_audio_shortcode' ));954 add_shortcode( 'audio', 'wp_audio_shortcode' ); 950 955 951 956 /** 952 957 * Return a filtered list of WP-supported video formats … … 971 976 */ 972 977 function wp_video_shortcode( $attr ) { 973 978 global $content_width; 979 980 // Allow plugins to short-circuit the shortcode. 981 $html = apply_filters( 'wp_video_shortcode_handler', false, $attr ); 982 if ( false !== $html ) 983 return $html; 984 974 985 $post_id = get_post() ? get_the_ID() : 0; 975 986 976 987 static $instances = 0; … … 1090 1101 $html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html ); 1091 1102 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); 1092 1103 } 1093 add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ));1104 add_shortcode( 'video', 'wp_video_shortcode' ); 1094 1105 1095 1106 /** 1096 1107 * Display previous image link that has the same post parent.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)