diff --git a/wp-admin/import/wp-cat2tag.php b/wp-admin/import/wp-cat2tag.php index b10edb439e..0ba3a2724d 100644 --- a/wp-admin/import/wp-cat2tag.php +++ b/wp-admin/import/wp-cat2tag.php @@ -1,7 +1,5 @@ '; + + clean_category_cache(); } function init() { @@ -125,13 +125,20 @@ class WP_Categories_to_Tags { $this->header(); - switch ($step) { - case 1: - $this->welcome(); + if (!current_user_can('manage_categories') || !current_user_can('manage_tags')) { + print '
'; + print '

' __('Cheatin’ uh?') . '

'; + print '
'; + } else { + switch ($step) { + case 1 : + $this->welcome(); break; - case 2: - $this->convert_them(); + + case 2 : + $this->convert_them(); break; + } } $this->footer();