Google Analytics by MonsterInsights
[Plugin: Google Analytics for WordPress] PHP Notice if comment author link is empty (1 post)

  1. Aaron D. Campbell
    Posted 4 years 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;


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Analytics by MonsterInsights
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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