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

git-svn-id: https://develop.svn.wordpress.org/trunk@13450 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2010-02-27 04:04:36 +00:00
parent a8e7d29ca1
commit 279f93647a
2 changed files with 18 additions and 2 deletions
+11
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>