Changeset 15205
- Timestamp:
- 06/11/2010 12:00:47 AM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r15178 r15205 338 338 <div class="form-wrap"> 339 339 <p><?php printf(__('<strong>Note:</strong><br />Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category <strong>%s</strong>.'), apply_filters('the_category', get_cat_name(get_option('default_category')))) ?></p> 340 <?php if ( current_user_can( 'import' ) ) : ?> 340 341 <p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'import.php') ?></p> 341 </div> 342 <?php elseif ( 'post_tag' == $taxonomy ) : ?> 342 <?php endif; ?> 343 </div> 344 <?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?> 343 345 <div class="form-wrap"> 344 346 <p><?php printf(__('Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>'), 'import.php') ;?>.</p> -
trunk/wp-admin/tools.php
r15132 r15205 39 39 endif; 40 40 41 if ( current_user_can( 'import' ) ) : 41 42 $cats = get_taxonomy('category'); 42 43 $tags = get_taxonomy('post_tag'); 43 44 44 if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?> 45 45 <div class="tool-box"> … … 48 48 </div> 49 49 <?php 50 endif; 50 51 endif; 51 52
Note: See TracChangeset
for help on using the changeset viewer.