WordPress.org

Make WordPress Core

Ticket #34971: 34971-no-alt-tag.diff

File 34971-no-alt-tag.diff, 549 bytes (added by peterwilsoncc, 5 years ago)
  • src/wp-includes/embed.php

    diff --git a/src/wp-includes/embed.php b/src/wp-includes/embed.php
    index 2736204..0833344 100644
    a b function wp_oembed_register_route() { 
    345345function wp_oembed_add_discovery_links() {
    346346        $output = '';
    347347
    348         if ( is_singular() ) {
     348        if ( is_singular() && !is_front_page() ) {
    349349                $output .= '<link rel="alternate" type="application/json+oembed" href="' . esc_url( get_oembed_endpoint_url( get_permalink() ) ) . '" />' . "\n";
    350350
    351351                if ( class_exists( 'SimpleXMLElement' ) ) {