Make WordPress Core


Ignore:
Timestamp:
12/22/2015 10:54:17 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.

Merge of [36059] to the 4.4 branch.

Fixes #35194.

File:
1 edited

Legend:

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

    r35718 r36060  
    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.