Make WordPress Core

Ticket #34429: 34429.diff

File 34429.diff, 735 bytes (added by peterwilsoncc, 9 years ago)
  • src/wp-includes/embed-functions.php

    diff --git a/src/wp-includes/embed-functions.php b/src/wp-includes/embed-functions.php
    index 7e90221..eb97e68 100644
    a b function get_post_embed_html( $post = null, $width, $height ) { 
    466466        $embed_url = get_post_embed_url( $post );
    467467
    468468        $output = "<script type='text/javascript'>\n";
     469        $output .= "<!--//--><![CDATA[//><!--\n";
    469470        if ( SCRIPT_DEBUG ) {
    470471                $output .= file_get_contents( ABSPATH . WPINC . '/js/wp-embed.js' );
    471472        } else {
    function get_post_embed_html( $post = null, $width, $height ) { 
    483484                include "js/wp-embed.min.js"
    484485JS;
    485486        }
     487        $output .= "//--><!]]>";
    486488        $output .= "\n</script>";
    487489
    488490        $output .= sprintf(