mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors.
props tomdxw. fixes #30927. git-svn-id: https://develop.svn.wordpress.org/trunk@31300 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -316,7 +316,7 @@ if ( !user_can_access_admin_page() ) {
|
||||
*/
|
||||
do_action( 'admin_page_access_denied' );
|
||||
|
||||
wp_die( __('You do not have sufficient permissions to access this page.') );
|
||||
wp_die( __( 'You do not have sufficient permissions to access this page.' ), 403 );
|
||||
}
|
||||
|
||||
$menu = add_menu_classes($menu);
|
||||
|
||||
Reference in New Issue
Block a user