Ticket #25313: 25313.4.patch
| File 25313.4.patch, 1.5 KB (added by , 13 years ago) |
|---|
-
wp-includes/media.php
853 853 static $instances = 0; 854 854 $instances++; 855 855 856 // Allow plugins and themes to short-circuit the shortcode. 857 $html = apply_filters( 'wp_audio_shortcode_override', false, $attr, $instances ); 858 if ( false !== $html ) 859 return $html; 860 856 861 $audio = null; 857 862 858 863 $default_types = wp_get_audio_extensions(); … … 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 … … 976 981 static $instances = 0; 977 982 $instances++; 978 983 984 // Allow plugins and themes to short-circuit the shortcode. 985 $html = apply_filters( 'wp_video_shortcode_override', false, $attr, $instances ); 986 if ( false !== $html ) 987 return $html; 988 979 989 $video = null; 980 990 981 991 $default_types = wp_get_video_extensions(); … … 1090 1100 $html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html ); 1091 1101 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); 1092 1102 } 1093 add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ));1103 add_shortcode( 'video', 'wp_video_shortcode' ); 1094 1104 1095 1105 /** 1096 1106 * 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)