WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 4 months 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:

Description

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 7 months ago.
Simple 404 page for the admin

Download all attachments as: .zip

Change History (6)

#1 @nacin
3 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
3 years ago

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

#3 @helen
3 years ago

  • Version changed from trunk to 3.9

#4 @chriscct7
18 months ago

  • Keywords needs-patch added

@gonnabecake
7 months ago

Simple 404 page for the admin

#5 @swissspidy
4 months 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.