Ticket #17764: autoembed-core-diff.diff
File autoembed-core-diff.diff, 958 bytes (added by , 13 years ago) |
---|
-
media.php
1257 1257 * @return string Potentially modified $content. 1258 1258 */ 1259 1259 function autoembed( $content ) { 1260 return preg_replace_callback( ' |^\s*(https?://[^\s"]+)\s*$|im', array(&$this, 'autoembed_callback'), $content );1260 return preg_replace_callback( '!^\s*(?:<a href="[^"]+">)?(https?://[^\s<"]+)(?:</a>)?\s*$!im', array(&$this, 'autoembed_callback'), $content ); 1261 1261 } 1262 1262 1263 1263 /** … … 1438 1438 return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&hl=en&fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr ); 1439 1439 } 1440 1440 1441 ?> 1442 No newline at end of file 1441 ?>