Viewing 3 replies - 1 through 3 (of 3 total)
  • Mark

    (@delayedinsanity)

    While I thought there shouldn’t be any empty strings spit out by the ignore list, I should have added a check to make sure either way.

    I’ll add this to the bugfix list for the next release (due out today), but if you want to get rid of the warning produced, the following should fix it. Open lib/functions.php and go to line 117, it will look like (with the lines on either side for clarity);

    foreach ( $kstats->config['ignore']['ignore_list'] as $ignore )
    		if ( strpos( $ip, $ignore ) !== FALSE )
    			return TRUE;

    Change the if statement to the following;

    if ( ! empty( $ignore ) && strpos( $ip, $ignore ) !== FALSE )

    I normally run with WP_DEBUG set to on for a couple days before release, but in this case I had turned it off since MU itself has been producing more warnings than my plugin was. My fault for not running it on before tagging that release though, sorry.

    Thread Starter e71meister

    (@e71meister)

    Many thanks for your work…

    Mark

    (@delayedinsanity)

    0.6.9 is out tonight, which includes this bug fix amongst others. Thank you for bringing it to my attention!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: kStats Reloaded] warning error on latest version’ is closed to new replies.