]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/embed.php
WordPress 4.4.1
[autoinstalls/wordpress.git] / wp-includes / embed.php
index 5e4cdc1605d63fbfdcd8ff24d179c94b71baad15..9fa1aa3df740739f044cdd27073c44677c7e52f1 100644 (file)
@@ -345,7 +345,7 @@ function wp_oembed_register_route() {
 function wp_oembed_add_discovery_links() {
        $output = '';
 
-       if ( is_singular() ) {
+       if ( is_singular() && ! is_front_page() ) {
                $output .= '<link rel="alternate" type="application/json+oembed" href="' . esc_url( get_oembed_endpoint_url( get_permalink() ) ) . '" />' . "\n";
 
                if ( class_exists( 'SimpleXMLElement' ) ) {