Ticket #23419: 23419.diff
File 23419.diff, 2.1 KB (added by , 12 years ago) |
---|
-
wp-includes/class-oembed.php
47 47 'http://wordpress.tv/*' => array( 'http://wordpress.tv/oembed/', false ), 48 48 '#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'http://polldaddy.com/oembed/', true ), 49 49 '#https?://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ), 50 '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true ),51 50 '#https?://(www\.)?soundcloud\.com/.*#i' => array( 'http://soundcloud.com/oembed', true ), 52 51 '#https?://(www\.)?slideshare.net/*#' => array( 'http://www.slideshare.net/api/oembed/2', true ), 53 52 '#http://instagr(\.am|am\.com)/p/.*#i' => array( 'http://api.instagram.com/oembed', true ), -
wp-includes/media.php
1083 1083 if ( ! apply_filters( 'load_default_embeds', true ) ) 1084 1084 return; 1085 1085 wp_embed_register_handler( 'googlevideo', '#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i', 'wp_embed_handler_googlevideo' ); 1086 wp_embed_register_handler( 'twitter', '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i', 'wp_embed_handler_twitter' ); 1086 1087 } 1087 1088 1088 1089 /** … … 1110 1111 } 1111 1112 1112 1113 /** 1114 * Twitter embed handler callback 1115 */ 1116 function wp_embed_handler_twitter( $matches, $attr, $url, $rawattr ) { 1117 wp_enqueue_script( 'twitter-widgets', '//platform.twitter.com/widgets.js', array(), false, true ); 1118 return sprintf( '<blockquote class="twitter-tweet"><a href="%s">%s</a></blockquote>', esc_url( $url ), esc_html__( 'View embedded content' ) ); 1119 } 1120 1121 /** 1113 1122 * {@internal Missing Short Description}} 1114 1123 * 1115 1124 * @since 2.3.0