WordPress.org

Make WordPress Core

Changeset 28641


Ignore:
Timestamp:
05/30/2014 09:19:55 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Adjacent links in wp_head() should only be generated for posts, not pages.

props alexander.rohmann.
fixes #21658.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r28609 r28641  
    16561656 */
    16571657function adjacent_posts_rel_link_wp_head() {
    1658     if ( !is_singular() || is_attachment() )
     1658    if ( ! is_single() ) {
    16591659        return;
     1660    }
    16601661    adjacent_posts_rel_link();
    16611662}
Note: See TracChangeset for help on using the changeset viewer.