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:
parent
a8e7d29ca1
commit
279f93647a
@ -308,8 +308,13 @@ if ( $page_links )
|
||||
<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>
|
||||
<p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'admin.php?import=wp-cat2tag') ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php elseif ( 'post_tag' == $taxonomy ) : ?>
|
||||
<div class="form-wrap">
|
||||
<p><?php printf(__('Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>'), 'admin.php?import=wp-cat2tag&step=3') ;?>.</p>
|
||||
</div>
|
||||
<?php endif;
|
||||
do_action('after-' . $taxonomy . '-table', $taxonomy);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div><!-- /col-right -->
|
||||
|
@ -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/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&step=3'); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
do_action( 'tool_box' );
|
||||
?>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user