WordPress.org

Ready to get started?Download WordPress

Forums

Better Related Posts
[PATCH] Undefined variable: $r (1 post)

  1. flynsarmy
    Member
    Posted 1 year ago #

    In some posts I get the following warning with WP_DEBUG turned on:

    Notice: Undefined variable: r in /path/to/wp-content/plugins/better-related/inc/frontend.php on line 169

    Method get_the_related() should either define $r at the top and use $r .= everywhere else or change
    return $r;
    to
    return isset($r) ? $r : '';
    at the end of the function.

    http://wordpress.org/extend/plugins/better-related/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.