Make WordPress Core

Ticket #33669: 33669.diff

File 33669.diff, 650 bytes (added by kraftbj, 9 years ago)

original props ericlewis, modified to specify can't edit comments since this is edit-comments.php

  • src/wp-admin/edit-comments.php

     
    99/** WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111if ( !current_user_can('edit_posts') )
    12         wp_die( __( 'Cheatin’ uh?' ), 403 );
     12        wp_die(
     13                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     14                '<p>' . __( 'You are not allowed to edit comments.' ) . '</p>',
     15                403 );
    1316
    1417$wp_list_table = _get_list_table('WP_Comments_List_Table');
    1518$pagenum = $wp_list_table->get_pagenum();