WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/06/2010 10:07:35 AM (9 years ago)
Author:
westi
Message:

Extra cap checks. See #15326.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r16175 r16222  
    99/** WordPress Administration Bootstrap */
    1010require_once('./admin.php');
    11 
     11if ( !current_user_can('edit_posts') )
     12    wp_die(__('Cheatin’ uh?'));
     13           
    1214$wp_list_table = get_list_table('WP_Comments_List_Table');
    1315$wp_list_table->check_permissions();
Note: See TracChangeset for help on using the changeset viewer.