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/includes/bookmark.php

    r30203 r30356  
    2828function edit_link( $link_id = 0 ) {
    2929    if ( !current_user_can( 'manage_links' ) )
    30         wp_die( __( 'Cheatin’ uh?' ) );
     30        wp_die( __( 'Cheatin’ uh?' ), 403 );
    3131
    3232    $_POST['link_url'] = esc_html( $_POST['link_url'] );
Note: See TracChangeset for help on using the changeset viewer.