Make WordPress Core


Ignore:
Timestamp:
11/16/2014 06:15:29 AM (7 years ago)
Author:
johnbillion
Message:

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

Fixes #10551
Props nacin

File:
1 edited

Legend:

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

    r30155 r30356  
    2626
    2727if ( ! current_user_can( $post_type_object->cap->edit_posts ) )
    28     wp_die( __( 'Cheatin’ uh?' ) );
     28    wp_die( __( 'Cheatin’ uh?' ), 403 );
    2929
    3030$wp_list_table = _get_list_table('WP_Posts_List_Table');
Note: See TracChangeset for help on using the changeset viewer.