[wp-trac] [WordPress Trac] #10550: nofollow attribute added to comment_reply_link function

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 7 01:05:02 UTC 2010


#10550: nofollow attribute added to comment_reply_link function
--------------------------+-------------------------------------------------
 Reporter:  seo-dave      |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.1        
Component:  Comments      |     Version:             
 Severity:  minor         |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by scribu):

  * milestone:  Future Release => 3.1


Comment:

 It's really easy to remove the nofollow attribute, without modifying Core.
 Just put the following code in your theme's functions.php or in a plugin:

 {{{
 function remove_reply_link_nofollow($reply_link) {
   return str_replace(" rel='nofollow'", '', $reply_link);
 }
 add_filter('comment_reply_link', 'remove_reply_link_nofollow');
 }}}

 That said, I agree that a nofollow attribute doesn't make sense here,
 since it's an internal link, especially since we have canonical URLs now.

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


More information about the wp-trac mailing list