Forums

Google Analytics for WordPress
PHP Notice if comment author link is empty (1 post)

  1. Aaron D. Campbell
    Member
    Posted 8 months ago #

    lines 1167 & 1168:

    preg_match($anchorPattern, $text, $matches);
    if ($matches[2] == "") return $text;

    If the author link isn't a link, just text, then $matches[2] doesn't exist, which throws an "Undefined offset" notice. This fixes it:

    if ( empty( $matches[2] ) ) return $text;

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 8 months ago by Aaron D. Campbell
  • This topic is not resolved
  • WordPress version: 3.3