Ticket #25387: 25387.diff
File 25387.diff, 585 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/class-wp-embed.php
289 289 * @return string Potentially modified $content. 290 290 */ 291 291 function autoembed( $content ) { 292 return preg_replace_callback( '|^\s*(https?://[^\s"]+)\s*$|im', array( $this, 'autoembed_callback' ), $content );292 return preg_replace_callback( '|(?<!")(https?://[^\s"\[<]+)|im', array( $this, 'autoembed_callback' ), $content ); 293 293 } 294 294 295 295 /**