Make WordPress Core

Ticket #25387: 25387.diff

File 25387.diff, 585 bytes (added by seanchayes, 10 years ago)
  • src/wp-includes/class-wp-embed.php

     
    289289         * @return string Potentially modified $content.
    290290         */
    291291        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 );
    293293        }
    294294
    295295        /**