WordPress.org

Make WordPress Core

Ticket #12115: 12115_2.diff

File 12115_2.diff, 487 bytes (added by ampt, 4 years ago)
  • wp-includes/class-oembed.php

     
    272272         * @return string Possibly modified $html 
    273273         */ 
    274274        function _strip_newlines( $html, $data, $url ) { 
    275                 if ( false !== strpos( "\n", $html ) ) 
     275                if ( false !== strpos( $html, "\n" ) ) 
    276276                        $html = str_replace( array( "\r\n", "\n" ), '', $html ); 
    277277 
    278278                return $html;