From 324cbf5d7e0d5e8db487c0ed3c35f24898bb7e2d Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 22 Dec 2015 10:50:31 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@36059 git-svn-id: http://core.svn.wordpress.org/trunk@36024 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/embed.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/embed.php b/wp-includes/embed.php index 5e4cdc1605..9fa1aa3df7 100644 --- a/wp-includes/embed.php +++ b/wp-includes/embed.php @@ -345,7 +345,7 @@ function wp_oembed_register_route() { function wp_oembed_add_discovery_links() { $output = ''; - if ( is_singular() ) { + if ( is_singular() && ! is_front_page() ) { $output .= '' . "\n"; if ( class_exists( 'SimpleXMLElement' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index d72be53c3a..0df794a337 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36056'; +$wp_version = '4.5-alpha-36059'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.