~canonical-sysadmins/wordpress/4.6

« back to all changes in this revision

Viewing changes to wp-includes/embed.php

  • Committer: Barry Price
  • Date: 2016-01-07 06:09:42 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: barry.price@canonical.com-20160107060942-1ghv2tqiwm8z0j36
Merge WP4.4.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
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' ) ) {