Ready to get started?Download WordPress


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

  1. Aaron D. Campbell
    Posted 2 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

About this Topic

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