Ticket #34971: 34971-no-alt-tag.diff
File 34971-no-alt-tag.diff, 549 bytes (added by , 9 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() { 345 345 function wp_oembed_add_discovery_links() { 346 346 $output = ''; 347 347 348 if ( is_singular() ) {348 if ( is_singular() && !is_front_page() ) { 349 349 $output .= '<link rel="alternate" type="application/json+oembed" href="' . esc_url( get_oembed_endpoint_url( get_permalink() ) ) . '" />' . "\n"; 350 350 351 351 if ( class_exists( 'SimpleXMLElement' ) ) {