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:
Sergey Biryukov
2015-01-29 21:14:54 +00:00
parent bb0ca6f111
commit dcb278f006
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);