[wp-trac] [WordPress Trac] #9959: wp_rel_nofollow_callback adds too
many rel/nofollow attributes
WordPress Trac
wp-trac at lists.automattic.com
Thu May 28 13:54:36 GMT 2009
#9959: wp_rel_nofollow_callback adds too many rel/nofollow attributes
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: Comments | Version: 2.8
Severity: minor | Keywords: needs-patch
-------------------------------+--------------------------------------------
if you insert a link in a comment, like:
{{{
<a href="foo" rel="bar nofollow">
}}}
wp_rel_nofollow_callback() turns that into:
{{{
<a href="foo" rel="bar nofollow" rel="nofollow">
}}}
Here's a correct implementation of a strip_nofollow() function:
http://plugins.trac.wordpress.org/browser/sem-dofollow/trunk/sem-
dofollow.php
We'd probably want to do the same in WP, and then reverse it: add
rel=nofollow if no rel is present, and add a nofollow to the rel if it's
not in there already.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9959>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list