[wp-trac] Re: [WordPress Trac] #4209: Add rel="prev" to previous_post_link() and rel="next" to next_post_link()

WordPress Trac wp-trac at lists.automattic.com
Mon May 25 15:43:51 GMT 2009


#4209: Add rel="prev" to previous_post_link() and rel="next" to next_post_link()
----------------------------+-----------------------------------------------
 Reporter:  FekketCantenel  |       Owner:           
     Type:  enhancement     |      Status:  new      
 Priority:  normal          |   Milestone:  2.9      
Component:  Template        |     Version:           
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
Changes (by vladimir_kolesnikov):

  * keywords:  needs-patch => has-patch
  * component:  Administration => Template


Comment:

 Attached two patches.

 The first one adds rel="prev/next" before xxx_posts_link_attributes is
 fired, thus the plugins have to check if rel is already there (IMHO they
 should do that anyway).

 The second one lets xxx_posts_link_attributes run, then checks if rel= is
 already there; if not, it is added.

 Personally I like the first one more, as it is simplier and plugins in
 theory can add their own <a> tags in xxx_posts_link_attributes, in which
 case rel will be added to too many places.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/4209#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list