Changeset 25484
- Timestamp:
- 09/18/2013 09:19:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r25444 r25484 883 883 $instances++; 884 884 885 /** 886 * Override the default audio shortcode. 887 * 888 * @since 3.7.0 889 * 890 * @param null Empty variable to be replaced with shortcode markup. 891 * @param array $attr Attributes of the shortcode. 892 * @param int $instances Unique numeric ID of this audio shortcode instance. 893 */ 894 $html = apply_filters( 'wp_audio_shortcode_override', null, $attr, $instances ); 895 if ( null !== $html ) 896 return $html; 897 885 898 $audio = null; 886 899 … … 976 989 return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library ); 977 990 } 978 add_shortcode( 'audio', apply_filters( 'wp_audio_shortcode_handler', 'wp_audio_shortcode' ));991 add_shortcode( 'audio', 'wp_audio_shortcode' ); 979 992 980 993 /** … … 1005 1018 static $instances = 0; 1006 1019 $instances++; 1020 1021 /** 1022 * Override the default video shortcode. 1023 * 1024 * @since 3.7.0 1025 * 1026 * @param null Empty variable to be replaced with shortcode markup. 1027 * @param array $attr Attributes of the shortcode. 1028 * @param int $instances Unique numeric ID of this video shortcode instance. 1029 */ 1030 $html = apply_filters( 'wp_video_shortcode_override', null, $attr, $instances ); 1031 if ( null !== $html ) 1032 return $html; 1007 1033 1008 1034 $video = null; … … 1120 1146 return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); 1121 1147 } 1122 add_shortcode( 'video', apply_filters( 'wp_video_shortcode_handler', 'wp_video_shortcode' ));1148 add_shortcode( 'video', 'wp_video_shortcode' ); 1123 1149 1124 1150 /**
Note: See TracChangeset
for help on using the changeset viewer.