From 38563c2521707ebb95d2a8c0acf039573103201f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 18 Jul 2010 13:53:58 +0000 Subject: [PATCH] Add cap check. Props duck_. see #14343 git-svn-id: https://develop.svn.wordpress.org/trunk@15439 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 5fc181569c..01d9799466 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -19,6 +19,9 @@ if ( !taxonomy_exists($taxonomy) ) $tax = get_taxonomy($taxonomy); +if ( ! current_user_can($tax->cap->manage_terms) ) + wp_die(__('Cheatin’ uh?')); + $title = $tax->labels->name; if ( empty($post_type) || !in_array( $post_type, get_post_types( array('public' => true) ) ) )