diff --git a/wp-includes/embed.php b/wp-includes/embed.php index e0f4bc937c..338c6a041b 100644 --- a/wp-includes/embed.php +++ b/wp-includes/embed.php @@ -472,7 +472,7 @@ function get_post_embed_html( $width, $height, $post = null ) { $embed_url .= "#?secret={$secret}"; $output = wp_get_inline_script_tag( - file_get_contents( sprintf( ABSPATH . WPINC . '/js/wp-embed' . wp_scripts_get_suffix() . '.js' ) ) + file_get_contents( ABSPATH . WPINC . '/js/wp-embed' . wp_scripts_get_suffix() . '.js' ) ); $output .= sprintf( @@ -1042,27 +1042,10 @@ function enqueue_embed_scripts() { */ function print_embed_styles() { $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"'; + $suffix = SCRIPT_DEBUG ? '' : '.min'; ?> > - - include "css/wp-embed-template.min.css" - + - > - - include "js/wp-embed-template.min.js" - - -