#37483 closed defect (bug) (duplicate)
WP_LOGIN is not being detected
Reported by: | tazotodua | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | |
Focuses: | Cc: |
Description
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)
Change History (2)
#1
@
8 years ago
- Component changed from General to Login and Registration
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
#2
@
8 years ago
WELL, MY REQUEST IS COMPLETELY DIFFERENT!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHAT ON EARTH, if you add
define('LOGIN_PAGE_EXECUTED', true);
or something like that in wp-login.php
why dont you make a great help to programmers?
we cant determine when we are on login page (when we output login page on other page then wp-login.php url)
Duplicate of #19898.