[wp-trac] [WordPress Trac] #21658: Meaningless adjacent post links for pages

WordPress Trac noreply at wordpress.org
Sun Jun 8 19:13:25 UTC 2014


#21658: Meaningless adjacent post links for pages
-------------------------------+-----------------------------
 Reporter:  mdgl               |       Owner:  SergeyBiryukov
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  4.0
Component:  Posts, Post Types  |     Version:  3.4.1
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  template
-------------------------------+-----------------------------

Comment (by kitchin):

 If we drill down to the level of $post rather than query, we can use
 `$post->post_type == 'post'`
 or more generally
 `post_type_supports( $post->post_type, 'trackbacks' )`
 or a new support feature 'rel_links'
 `post_type_supports( $post->post_type, 'rel_links' )`

 Themes that want more control can replace
 `adjacent_posts_rel_link_wp_head()` with a conditional call to
 `adjacent_posts_rel_link();`

 If we're staying at the query level rather than getting $post, seems we
 need yet another `is_` function and property, for clarity at least.

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


More information about the wp-trac mailing list