[wp-trac] [WordPress Trac] #11359: Don't nofollow links in admin comments

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 27 02:48:33 UTC 2009


#11359: Don't nofollow links in admin comments
--------------------------+-------------------------------------------------
 Reporter:  caesarsgrunt  |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Comments      |     Version:  2.9        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by hakre):

 Related:

 {{{
 add_filter( 'pre_comment_content',  'wp_rel_nofollow',              15
 );
 }}}
 from: file wp-includes/default-filters.php line 158.

 wp_rel_nofollow() is in wp-includes/formatting.php line 1373.

 A fix could be to remove the original filter, add and own as proxy and
 then check for the comments author. The problem is, that this filter knows
 nothing about the actual comment. Only the comment text and that's it.
 Those information can be passed as additional parameter when applying the
 filter. see wp_filter_comment().

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


More information about the wp-trac mailing list