Ticket #24092: 24092.diff
File 24092.diff, 1.3 KB (added by , 11 years ago) |
---|
-
wp-includes/media.php
2011 2011 $audio = do_shortcode( '[audio src="' . $url . '" /]' ); 2012 2012 return apply_filters( 'wp_audio_embed', $audio, $attr, $url, $rawattr ); 2013 2013 } 2014 wp_embed_register_handler( 'wp_audio_embed', '# https?://.+?\.(' . join( '|', wp_get_audio_extensions() ) . ')#i', apply_filters( 'wp_audio_embed_handler', 'wp_audio_embed' ), 9999 );2014 wp_embed_register_handler( 'wp_audio_embed', '#^https?://.+?\.(' . join( '|', wp_get_audio_extensions() ) . ')$#i', apply_filters( 'wp_audio_embed_handler', 'wp_audio_embed' ), 9999 ); 2015 2015 2016 2016 /** 2017 2017 * Video embed handler callback. … … 2045 2045 } 2046 2046 return apply_filters( 'wp_video_embed', $video, $attr, $url, $rawattr ); 2047 2047 } 2048 wp_embed_register_handler( 'wp_video_embed', '# https?://.+?\.(' . join( '|', wp_get_video_extensions() ) . ')#i', apply_filters( 'wp_video_embed_handler', 'wp_video_embed' ), 9999 );2048 wp_embed_register_handler( 'wp_video_embed', '#^https?://.+?\.(' . join( '|', wp_get_video_extensions() ) . ')$#i', apply_filters( 'wp_video_embed_handler', 'wp_video_embed' ), 9999 ); 2049 2049 2050 2050 /** 2051 2051 * Return suitable HTML code for output based on the content related to the global $post