Revert [14853], [14778], returning tag/cat converter to tools.php and edit-tags.php. Link to import.php instead of the converter directly as it may not be installed. see #13566.

git-svn-id: https://develop.svn.wordpress.org/trunk@14978 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-05-27 04:35:11 +00:00
parent 9b8998cb46
commit b5da1545f4
2 changed files with 16 additions and 0 deletions

View File

@@ -37,6 +37,17 @@ require_once('./admin-header.php');
<?php
endif;
$cats = get_taxonomy('category');
$tags = get_taxonomy('post_tag');
if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
<div class="tool-box">
<h3 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h3>
<p><?php printf( __('<a href="%s">Use this</a> to convert categories to tags or tags to categories</a>.'), 'import.php' ); ?></p>
</div>
<?php
endif;
do_action( 'tool_box' );
?>
</div>