WordPress.org

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/options.php

    r30335 r30356  
    4646
    4747if ( !current_user_can( $capability ) )
    48     wp_die(__('Cheatin’ uh?'));
     48    wp_die( __( 'Cheatin’ uh?' ), 403 );
    4949
    5050// Handle admin email change requests
     
    7070
    7171if ( is_multisite() && !is_super_admin() && 'update' != $action )
    72     wp_die(__('Cheatin’ uh?'));
     72    wp_die( __( 'Cheatin’ uh?' ), 403 );
    7373
    7474$whitelist_options = array(
Note: See TracChangeset for help on using the changeset viewer.