diff --git wp-admin/edit-comments.php wp-admin/edit-comments.php
index d1bf2b5..e6b8506 100644
|
|
|
8 | 8 | |
9 | 9 | /** WordPress Administration Bootstrap */ |
10 | 10 | require_once( dirname( __FILE__ ) . '/admin.php' ); |
11 | | if ( !current_user_can('edit_posts') ) |
12 | | wp_die( __( 'Cheatin’ uh?' ), 403 ); |
| 11 | if ( !current_user_can('edit_posts') ) { |
| 12 | $user = wp_get_current_user(); |
| 13 | wp_die( sprintf( __( 'User <code>%s</code> does not have the required capability <code>%s</code> |
| 14 | to perform this action in <code>%s:%s</code>.' ), $user->user_login, 'edit_posts', __FILE__, __LINE__ ), 403 ); |
| 15 | } |
13 | 16 | |
14 | 17 | $wp_list_table = _get_list_table('WP_Comments_List_Table'); |
15 | 18 | $pagenum = $wp_list_table->get_pagenum(); |