WordPress.org

Forums

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

  1. Aaron D. Campbell
    Member
    Posted 3 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;

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

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