Make WordPress Core


Ignore:
Timestamp:
12/22/2015 10:49:20 AM (9 years ago)
Author:
pento
Message:

Embeds: Don't show embed discovery link on a static front page.

There's currently no iframe content being generated for a static front page. Giving out a link to that isn't an ideal user experience.

Props peterwilsoncc.

Fixes #35194 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed.php

    r35718 r36059  
    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
Note: See TracChangeset for help on using the changeset viewer.