Make WordPress Core


Ignore:
Timestamp:
06/11/2010 12:00:47 AM (14 years ago)
Author:
nacin
Message:

Check for the import cap before showing links to the tag/cat converter. props kpdesign, fixes #13834.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/tools.php

    r15132 r15205  
    3939endif;
    4040
     41if ( current_user_can( 'import' ) ) :
    4142$cats = get_taxonomy('category');
    4243$tags = get_taxonomy('post_tag');
    43 
    4444if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
    4545<div class="tool-box">
     
    4848</div>
    4949<?php
     50endif;
    5051endif;
    5152
Note: See TracChangeset for help on using the changeset viewer.