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
This commit is contained in:
Sergey Biryukov 2014-05-30 21:19:55 +00:00
parent 2d0be44d85
commit 3afd9885c2

View File

@ -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();
}