WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/09/2020 09:32:07 PM (14 months ago)
Author:
johnbillion
Message:

Posts, Post Types: Don't output the adjacent posts rel link by default.

This has a considerable performance impact on sites which don't otherwise show previous and next post links, and has no SEO benefit.

Props joostdevalk, swissspidy, johnbillion

Fixes #39111

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r48537 r48966  
    287287add_action( 'wp_head', 'rsd_link' );
    288288add_action( 'wp_head', 'wlwmanifest_link' );
    289 add_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
    290289add_action( 'wp_head', 'locale_stylesheet' );
    291290add_action( 'publish_future_post', 'check_and_publish_future_post', 10, 1 );
Note: See TracChangeset for help on using the changeset viewer.