wordpress hack for comment links

This is my solution to a request for a WordPress hack from the support forum:
http://wordpress.org/support/topic/71499?replies=2#post-374824

Edit /wp-includes/comment-functions.php

Assuming you have WP v2.0.2, modify line 378 which is:

$return = "$author";

to:

$return = "$author";

I just tested it and it works. If you don’t have v2.0.2 just search for that line of text.

Just FYI, this modifies the get_comment_author_link() function which is called from your theme file, so if you swap themes this should still work, but if you upgrade WordPress to a new version after this hack then you will have to reapply the hack I guess.

About Tom Bammann

Hi, I'm Tom. Within this blog you will read about my thoughts on the world, stuff I get up to, and experiences I have. ~Tom Bammann~
This entry was posted in Web Development. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This site is using OpenAvatar based on