Ticket #25313: 25313.6.patch
| File 25313.6.patch, 2.0 KB (added by , 13 years ago) |
|---|
-
wp-includes/media.php
853 853 static $instances = 0; 854 854 $instances++; 855 855 856 /** 857 * Override the default audio shortcode. 858 * 859 * @since 3.7.0 860 * 861 * @param null Empty variable to be replaced with shortcode markup. 862 * @param array $attr Attributes of the shortcode. 863 * @param int $instances Unique numeric ID of this audio shortcode instance. 864 */ 865 $html = apply_filters( 'wp_audio_shortcode_override', null, $attr, $instances ); 866 if ( is_string( $html ) ) 867 return $html; 868 856 869 $audio = null; 857 870 858 871 $default_types = wp_get_audio_extensions(); … … 946 959 947 960 return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library ); 948 961 } 949 add_shortcode( 'audio', apply_filters( 'wp_audio_shortcode_handler', 'wp_audio_shortcode' ));962 add_shortcode( 'audio', 'wp_audio_shortcode' ); 950 963 951 964 /** 952 965 * Return a filtered list of WP-supported video formats … … 976 989 static $instances = 0; 977 990 $instances++; 978 991 992 /** 993 * Override the default video shortcode. 994 * 995 * @since 3.7.0 996 * 997 * @param null Empty variable to be replaced with shortcode markup. 998 * @param array $attr Attributes passed from the shortcode. 999 * @param int $instances Unique numeric ID of this video shortcode instance. 1000 */ 1001 $html = apply_filters( 'wp_video_shortcode_override', null, $attr, $instances ); 1002 if ( is_string( $html ) ) 1003 return $html; 1004 979 1005 $video = null; 980 1006 981 1007 $default_types = wp_get_video_extensions(); … … 1090 1116 $html = sprintf( '<div style="width: %dpx; max-width: 100%%;">%s</div>', $width, $html ); 1091 1117 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); 1092 1118 } 1093 add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ));1119 add_shortcode( 'video', 'wp_video_shortcode' ); 1094 1120 1095 1121 /** 1096 1122 * 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)