From 3afd9885c2d6a9245ccf2465e4ed698bce75b29b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 30 May 2014 21:19:55 +0000 Subject: [PATCH] Adjacent links in wp_head() should only be generated for posts, not pages. props alexander.rohmann. fixes #21658. git-svn-id: https://develop.svn.wordpress.org/trunk@28641 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/link-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index 4ff4226936..26b6f53e34 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -1655,8 +1655,9 @@ function adjacent_posts_rel_link( $title = '%title', $in_same_term = false, $exc * */ function adjacent_posts_rel_link_wp_head() { - if ( !is_singular() || is_attachment() ) + if ( ! is_single() ) { return; + } adjacent_posts_rel_link(); }