Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4487 closed defect (bug) (wontfix)

is_admin returns false for wp-login.php

Reported by: fitztrev Owned by:
Priority: low Milestone:
Component: General Version:
Severity: minor Keywords:
Cc: Focuses:

Description

I would think that wp-login.php could be characterized as an administration page, and it deserves to get some love from the ​is_admin() function.

Change History (5)

#1 @rob1n
19 years ago

  • Keywords 2nd-opinion added
  • Milestone 2.3 (trunk) → 2.4 (future)

It can be debatable. I see arguments for both sides, but right now I'm -1.

#2 @Nazgul
19 years ago

In my opinion is that for everything in the wp-admin directory is_admin()==true, otherwise it's false.

And since wp-login.php is in the root...

#3 @rob1n
19 years ago

I agree. And is_admin() is used for pages, well, in the admin, in most cases that I can think of.

Anyone else? Otherwise I'm closing as wontfix.

#4 @johnbillion
19 years ago

-1.

The login page is nothing to do with admin, it's a publically viewable page (which just happens to be where you log into admin).

#5 @Nazgul
19 years ago

  • Keywords 2nd-opinion removed
  • Milestone 2.4 (future)
  • Resolution → wontfix
  • Status new → closed

According to the comments, the majority vote goes to wontfix.

Feel free to reopen if you have additional info/suggestions/...

Note: See TracTickets for help on using tickets.