Support » Plugin: Better Related Posts » [PATCH] Undefined variable: $r

  • flynsarmy

    (@flynsarmy)


    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/

  • The topic ‘[PATCH] Undefined variable: $r’ is closed to new replies.