Add Tag::Cat converters to the Tools page. Props ninjaWR. Add Tag->Cat converter links on Manage Tags page. Fixes #8634

git-svn-id: http://svn.automattic.com/wordpress/trunk@13450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32
2010-02-27 04:04:36 +00:00
parent bd3db9bb78
commit 2cc01f59cb
2 changed files with 18 additions and 2 deletions

View File

@@ -89,6 +89,17 @@ if ( ! $is_opera ) {
<?php
endif;
$cats = get_taxonomy('category');
$tags = get_taxonomy('post_tag');
if ( current_user_can($cats->manage_cap) || current_user_can($tags->manage_cap) ) : ?>
<div class="tool-box">
<h3 class="title"><?php _e('Category&#47;Tag Conversion') ?></h3>
<p><?php printf(__('Use this to convert <a href="%s">categories to tags</a>, or <a href="%s">tags to categories</a>.'), 'admin.php?import=wp-cat2tag', 'admin.php?import=wp-cat2tag&amp;step=3'); ?></p>
</div>
<?php
endif;
do_action( 'tool_box' );
?>
</div>