Make WordPress Core

Ticket #33671: 33671.diff

File 33671.diff, 595 bytes (added by kraftbj, 9 years ago)

props ericlewis

  • src/wp-admin/edit.php

     
    3131        wp_die( __( 'Invalid post type' ) );
    3232
    3333if ( ! current_user_can( $post_type_object->cap->edit_posts ) )
    34         wp_die( __( 'Cheatin’ uh?' ), 403 );
     34        wp_die(
     35                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     36                '<p>' . __( 'You are not allowed to edit these items.' ) . '</p>',
     37                403 );
    3538
    3639$wp_list_table = _get_list_table('WP_Posts_List_Table');
    3740$pagenum = $wp_list_table->get_pagenum();