Make WordPress Core


Ignore:
Timestamp:
01/29/2015 09:14:54 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors.

props tomdxw.
fixes #30927.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/menu.php

    r29206 r31300  
    317317    do_action( 'admin_page_access_denied' );
    318318
    319     wp_die( __('You do not have sufficient permissions to access this page.') );
     319    wp_die( __( 'You do not have sufficient permissions to access this page.' ), 403 );
    320320}
    321321
Note: See TracChangeset for help on using the changeset viewer.