[wp-trac] [WordPress Trac] #37483: WP_LOGIN is not being detected
WordPress Trac
noreply at wordpress.org
Wed Jul 27 12:28:38 UTC 2016
#37483: WP_LOGIN is not being detected
--------------------------+-----------------------------
Reporter: tazotodua | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
hello, many plugins have an excellent feature to hide/change "admin" url.
but while they "include" WP-LOGIN.PHP, then
{{{
$GLOBALS['pagenow']=='wp-login.php'
}}}
is not being detected.
So, please make only 1 constant, to be defined inside WP-LOGIN.PHP, so, we
can easily detect if LOGIN page is loaded using:
{{{
if (defined('IS_LOGIN_PAGE')) { ..... }
}}}
I think this is much useful.
(I've opened a topic in iThemes security here :
https://wordpress.org/support/topic/security-
issue-70?replies=3#post-8685682)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37483>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list