Forums

[resolved] [Plugin: Google Analytics] Comment author broken link fix (2 posts)

  1. alism
    Member
    Posted 11 months ago #

    Hopefully the following helps someone...

    There's a solution in another thread for the Google Analyticator plugin, but the Google Analytics plugin (Boakes v0.68) also has a similar problem with Wordpress 2.7 - ie homepage links in comments have: "'%20rel='external%20nofollow" appended to the end of the URL.

    To fix it, the following should work. Find the code:

    function comment_author_link($text) {
    	static $anchorPattern = '(.*href\s*=\s*)[\"\']*(.*)[\"\'] (.*)';

    and replace it with:

    function comment_author_link($text) {
    	static $anchorPattern = '(.*href\s*=\s*)[\"\']*(.*\?)[\"\'] (.*)';
  2. grafphoto
    Member
    Posted 10 months ago #

    Thank you very much for this!! I was wondering why all author comments had broken links to their respective sites. Solved my issue with my 2.7 Upgrade.

Reply

You must log in to post.

About this Topic