From 550d0f0aeac411622eaec6412475e42f825ad64f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 18 Jun 2014 00:04:14 +0000 Subject: [PATCH] Don't generate adjacent links in wp_head() for attachments. props kovshenin. fixes #21658. git-svn-id: https://develop.svn.wordpress.org/trunk@28770 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index 538e0d8275..57856b5bce 100644 --- a/src/wp-includes/link-template.php +++ b/src/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();