From ef992f592c0e0f35042d54e774af008a9f48981d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 18 Jul 2010 13:59:53 +0000 Subject: [PATCH] Add cap check. see #14343 git-svn-id: https://develop.svn.wordpress.org/trunk@15441 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-tags.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 01d9799466..057aa489d2 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -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');