Add cap check. see #14343

git-svn-id: https://develop.svn.wordpress.org/trunk@15441 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-07-18 13:59:53 +00:00
parent 38563c2521
commit ef992f592c
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ case 'edit':
require_once ('admin-header.php');
$tag_ID = (int) $_GET['tag_ID'];
if ( !current_user_can($tax->cap->edit_terms) )
wp_die( __('You are not allowed to edit this item.') );
$tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
include('./edit-tag-form.php');