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/network/site-users.php

    r28497 r30356  
    134134                    // If the user doesn't already belong to the blog, bail.
    135135                    if ( !is_user_member_of_blog( $user_id ) )
    136                         wp_die(__('Cheatin’ uh?'));
     136                        wp_die( __( 'Cheatin’ uh?' ), 403 );
    137137
    138138                    $user = get_userdata( $user_id );
Note: See TracChangeset for help on using the changeset viewer.