Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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:


hello, many plugins have an excellent feature to hide/change "admin" url.

but while they "include" WP-LOGIN.PHP, then


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 @SergeyBiryukov
5 years ago

  • Component changed from General to Login and Registration
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #19898.

#2 @tazotodua
5 years ago


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)

Note: See TracTickets for help on using tickets.