From 585213b0b63da7ce915d4188fc06579a5b0e71da Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 18 Jun 2014 00:05:16 +0000 Subject: [PATCH] Don't generate adjacent links in wp_head() for attachments. props kovshenin. fixes #21658. Built from https://develop.svn.wordpress.org/trunk@28770 git-svn-id: http://core.svn.wordpress.org/trunk@28583 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 538e0d8275..57856b5bce 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1655,7 +1655,7 @@ function adjacent_posts_rel_link( $title = '%title', $in_same_term = false, $exc * */ function adjacent_posts_rel_link_wp_head() { - if ( ! is_single() ) { + if ( ! is_single() || is_attachment() ) { return; } adjacent_posts_rel_link(); diff --git a/wp-includes/version.php b/wp-includes/version.php index f9c94a7330..eaa27e8094 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.0-alpha-20140617'; +$wp_version = '4.0-alpha-20140618'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.