Make WordPress Core

Opened 7 years ago

Last modified 4 years ago

#27870 new enhancement

404 for wp-admin ?

Reported by: ozh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.9
Component: Administration Keywords: needs-patch close
Focuses: Cc:


Currently if you try to reach a non-existent admin page (site/wp-admin/bleh.php) you get a 404 from the public part of the blog

Wouldn't it be more logical to get a 404 that would match the admin environment? Or, at least, something along the lines of site/wp-admin/link-manager.php?

Attachments (1)

404.php (417 bytes) - added by gonnabecake 4 years ago.
Simple 404 page for the admin

Download all attachments as: .zip

Change History (6)

#1 @nacin
7 years ago

We don't actually have any rewrites configured for WP-admin, and doing so for this 404 seems unnecessary. Eventually our admin will be good enough for pretty URLs, but we're a long way from that.

#2 @bordoni
7 years ago

Would be awesome to pretty URLs on the admin =) [+1]

#3 @helen
7 years ago

  • Version changed from trunk to 3.9

#4 @chriscct7
5 years ago

  • Keywords needs-patch added

4 years ago

Simple 404 page for the admin

#5 @swissspidy
4 years ago

  • Keywords close added

Rewrites would make this easier, until then this could be added in the template redirection logic. But is there really a benefit of having a custom 404 page for the admin like in 404.php? How often do you access /wp-admin/bleh.php by accident?

Note: See TracTickets for help on using tickets.