[wp-trac] [WordPress Trac] #39111: Don't output the adjacent posts rel link by default

WordPress Trac noreply at wordpress.org
Tue Dec 6 16:09:47 UTC 2016


#39111: Don't output the adjacent posts rel link by default
-------------------------------------+------------------------------
 Reporter:  johnbillion              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Posts, Post Types        |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  performance
-------------------------------------+------------------------------
Description changed by johnbillion:

Old description:

> The query performed by `get_adjacent_post()` is an expensive one, and
> quickly becomes a performance bottleneck on sites with a large number of
> posts.
>
> This function is called twice when viewing a single post in order to
> output the `link rel='prev'` and `link rel='next'` links, and is often
> one of the first things disabled by WordPress-specific hosts in order to
> increase site performance.
>
> The usefulness of these tags is questionable. In addition, the links
> don't account for paginated posts (using `<!--nextpage-->`) and are
> therefore possibly incorrect in this situation.
>
> /cc @yoast for SEO review :-)

New description:

 The query performed by `get_adjacent_post()` is an expensive one, and
 quickly becomes a performance bottleneck on sites with a large number of
 posts.

 This function is called twice when viewing a single post in order to
 output the `link rel='prev'` and `link rel='next'` links, and is often one
 of the first things disabled by WordPress-specific hosts in order to
 increase site performance.

 The usefulness of these tags is questionable. In addition, the links don't
 account for paginated posts (using `<!--nextpage-->`) and are therefore
 possibly incorrect in this situation.

 /cc @joostdevalk for SEO review :-)

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39111#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list