whatadewitt
Member
Posted 1 year ago #
I'm getting a strange error with the plugin whenever a user is NOT logged in...
Notice: Undefined property: WP_User::$user_level in /[SERVER]/web/content/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 1310
Is there an easy way to fix this?
Thanks,
--d
whatadewitt
Member
Posted 1 year ago #
Would it be worth changing the line
if (!$current_user)
return true;
to
if (0 == $current_user->ID)
return true;
Thanks,
--d
Does that fix your issue?
whatadewitt
Member
Posted 1 year ago #
Ok that'll be fixed in the next release.
whatadewitt
Member
Posted 1 year ago #