Changeset 5203
- Timestamp:
- 04/07/2007 03:43:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wp-cat2tag.php
r5201 r5203 1 1 <?php 2 3 error_reporting(E_ALL);4 2 5 3 class WP_Categories_to_Tags { … … 115 113 116 114 print '</ul>'; 115 116 clean_category_cache(); 117 117 } 118 118 … … 126 126 $this->header(); 127 127 128 switch ($step) { 129 case 1: 130 $this->welcome(); 128 if (!current_user_can('manage_categories') || !current_user_can('manage_tags')) { 129 print '<div class="narrow">'; 130 print '<p>' __('Cheatin’ uh?') . '</p>'; 131 print '</div>'; 132 } else { 133 switch ($step) { 134 case 1 : 135 $this->welcome(); 131 136 break; 132 case 2: 133 $this->convert_them(); 137 138 case 2 : 139 $this->convert_them(); 134 140 break; 141 } 135 142 } 136 143
Note: See TracChangeset
for help on using the changeset viewer.