lines 1167 & 1168:
preg_match($anchorPattern, $text, $matches); if ($matches == "") return $text;
If the author link isn’t a link, just text, then $matches doesn’t exist, which throws an “Undefined offset” notice. This fixes it:
if ( empty( $matches ) ) return $text;
- The topic ‘[Plugin: Google Analytics for WordPress] PHP Notice if comment author link is empty’ is closed to new replies.