From cdf06921c74fbf2451cdc056902d0696287fcd47 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 2 Aug 2009 02:23:54 +0000 Subject: [PATCH] More cap checks, for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@11764 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-category-form.php | 3 +++ wp-admin/edit-link-category-form.php | 3 +++ wp-admin/edit-tag-form.php | 3 +++ wp-admin/export.php | 3 +++ wp-admin/import.php | 4 ++++ wp-admin/link-add.php | 3 +++ 6 files changed, 19 insertions(+) diff --git a/wp-admin/edit-category-form.php b/wp-admin/edit-category-form.php index 2e37f79641..9dd98aeaa3 100644 --- a/wp-admin/edit-category-form.php +++ b/wp-admin/edit-category-form.php @@ -6,6 +6,9 @@ * @subpackage Administration */ +if ( !current_user_can('manage_categories') ) + wp_die(__('You do not have sufficient permissions to edit categories for this blog.')); + /** * @var object */ diff --git a/wp-admin/edit-link-category-form.php b/wp-admin/edit-link-category-form.php index bb721110c6..cee75dcc39 100644 --- a/wp-admin/edit-link-category-form.php +++ b/wp-admin/edit-link-category-form.php @@ -6,6 +6,9 @@ * @subpackage Administration */ +if ( !current_user_can('manage_categories') ) + wp_die(__('You do not have sufficient permissions to edit link categories for this blog.')); + /** * @var object */ diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index efef02bcab..de975c9765 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -6,6 +6,9 @@ * @subpackage Administration */ +if ( !current_user_can('manage_categories') ) + wp_die(__('You do not have sufficient permissions to edit tags for this blog.')); + if ( empty($tag_ID) ) { ?>