Add cap check. see #14343
git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@15442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
367bec40b7
commit
fcca72e7b5
|
@ -124,6 +124,9 @@ case 'edit':
|
||||||
require_once ('admin-header.php');
|
require_once ('admin-header.php');
|
||||||
$tag_ID = (int) $_GET['tag_ID'];
|
$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');
|
$tag = get_term($tag_ID, $taxonomy, OBJECT, 'edit');
|
||||||
include('./edit-tag-form.php');
|
include('./edit-tag-form.php');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue