diff --git a/src/wp-admin/includes/menu.php b/src/wp-admin/includes/menu.php index a95cf9e33956e..3384858b68ff3 100644 --- a/src/wp-admin/includes/menu.php +++ b/src/wp-admin/includes/menu.php @@ -381,7 +381,15 @@ function sort_menu( $a, $b ) { */ do_action( 'admin_page_access_denied' ); - wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); + wp_die( + __( 'Sorry, you are not allowed to access this page.' ), + __( 'You need a higher level of permission.' ), + array( + 'response' => 403, + 'link_url' => admin_url(), + 'link_text' => __( 'Go to Dashboard' ), + ) + ); } $menu = add_menu_classes( $menu );