Adjacent links in wp_head() should only be generated for posts, not pages.
props alexander.rohmann. fixes #21658. Built from https://develop.svn.wordpress.org/trunk@28641 git-svn-id: http://core.svn.wordpress.org/trunk@28459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
552d84a8a8
commit
a8483f21e2
|
@ -1655,8 +1655,9 @@ function adjacent_posts_rel_link( $title = '%title', $in_same_term = false, $exc
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function adjacent_posts_rel_link_wp_head() {
|
function adjacent_posts_rel_link_wp_head() {
|
||||||
if ( !is_singular() || is_attachment() )
|
if ( ! is_single() ) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
adjacent_posts_rel_link();
|
adjacent_posts_rel_link();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue