WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 2 weeks ago

#24689 new enhancement

Improve error wp-admin page

Reported by: alexvorn2 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

"You do not have sufficient permissions to access this page." this is the only content on the error page, It would be nice to have a link to a Dashboard page if the user is logged.

Maybe we can integrate this error message into a wp-admin dashboard.

Attachments (1)

24689.patch (1008 bytes) - added by drayne 12 months ago.

Download all attachments as: .zip

Change History (4)

drayne12 months ago

comment:2 drayne12 months ago

  • Cc drayne added
  • Keywords has-patch added

I added a patch which will show a navigational button to the error page shown when wp_die is called. It first checks to see if wp_die is called with a parameter to show a button which triggers javascript back. If not, it will show a button which takes the user either to the dashboard or to the Wordpress home depending on whether the user is logged in or not.

Basically, this error page should not result in a dead end. It needs navigation.

Note: See TracTickets for help on using tickets.