Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31580

szaleq on "[Plugin: NewStatPress] Another bug"

$
0
0

newstatpress.php:2038 uses $userdata->user_login. This causes error when no user is logged in (no userdata object!).

Solution:
please do something like this:
$login = $userdata ? $userdata->user_login : null;

then use $login in line 2038;

https://wordpress.org/plugins/newstatpress/


Viewing all articles
Browse latest Browse all 31580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>