Extra cap checks. See #15326.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-11-06 10:07:35 +00:00
parent ee291ef5a5
commit 3f5ab5b9bf
2 changed files with 6 additions and 2 deletions

View File

@ -8,7 +8,9 @@
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( !current_user_can('edit_posts') )
wp_die(__('Cheatin’ uh?'));
$wp_list_table = get_list_table('WP_Comments_List_Table');
$wp_list_table->check_permissions();

View File

@ -8,7 +8,9 @@
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( !current_user_can( $tax->cap->manage_terms ) )
wp_die( __( 'Cheatin’ uh?' ) );
$wp_list_table = get_list_table('WP_Terms_List_Table');
$wp_list_table->check_permissions();