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/nav-menus.php

    r29900 r30356  
    2121// Permissions Check
    2222if ( ! current_user_can('edit_theme_options') )
    23     wp_die( __( 'Cheatin’ uh?' ) );
     23    wp_die( __( 'Cheatin’ uh?' ), 403 );
    2424
    2525wp_enqueue_script( 'nav-menu' );
Note: See TracChangeset for help on using the changeset viewer.