The wp_rel_nofollow() filter appears to be broken in 2.5.1 — when I add the suggested line to default-filters.php, the category list rendered on my site’s homepage has escaped quotes:
<li class=\"cat-item cat-item-3\"><a href=\"http://example.com/foo\" title=\"View all posts filed under Colophon\" rel=\"nofollow\">Colophon</a> (10)
I worked around this bug by cloning the wp_rel_nofollow() function to a new name and removing this line from it: $text = $wpdb->escape($text);
and then updating default-filters.php with my new function name: add_filter('wp_list_categories','wp_rel_nofollow_mgm');
Voila! Category links are nofollowed and there are no ugly escaped-quote issues in the source.
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘NOFOLLOW in Category and Archive Sidebar links’ is closed to new replies.