security issue
-
many other plugins use functions like this, to utilize some security actions:
$GLOBALS['pagenow']== 'wp-login.php'
but while “HIDE dashboard” feature is enabled in iThemes, then the above comparison returns FALSE!
so, please fix it.. i mean, when visiting the changed LOGIN url, the $GLOBALS[‘pagenow’] should be set to ‘wp-login.php’
same for WP-REGISTER.PHP!
===possible solutions===
1) maybe you have to tell this to WP-SUPPORT, to make these variables available while including wp-login.php .
2) you should attach a function toadd_action( 'login_head', 'my_func' ); function my_func(){ $GLOBALS['pagenow']=='wp-login.php';}
(same for register)
ALSO, why do you execute
add_action( 'init', array( $this, 'execute_hide_backend' ), 1000 );
on 1000th priority? i think it should be executed even in ‘plugins_loaded’ hook, in 1st priority!
- The topic ‘security issue’ is closed to new replies.