Undefined variable: pagenow in general-functions.php
-
Hi,
we are running multisite on WP 4.3.1 and we have this notice visible on dashboard:
Notice: Undefined variable: pagenow in /nfsmnt/hosting1_2/3/9/xxx/mysite.com/web/wp-content/plugins/bulletproof-security/includes/general-functions.php on line 1557
It is weird, because notice is visible only for Editor user. If I logged-in as Administrator, then there are no error messages on Dashboard.
It looks like that variable $pagenow is not set on that three conditions in line 1557 on general-functions.php even that you have global $pagenow two lines above. I was able to fix it by replacing line 1557 with this code:
if ( isset( $pagenow ) && ( 'profile.php' == $pagenow || 'user-edit.php' == $pagenow || 'user-new.php' == $pagenow ) ) {
Please let me know if this is a correct solution for now and also if this will be fixed in next version of your plugin.
Thanks in advance for your reply.
Michal
- The topic ‘Undefined variable: pagenow in general-functions.php’ is closed to new replies.