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