Make WordPress Core


Ignore:
Timestamp:
02/27/2010 04:04:36 AM (14 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

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

    r11940 r13450  
    9090endif;
    9191
     92$cats = get_taxonomy('category');
     93$tags = get_taxonomy('post_tag');
     94
     95if ( current_user_can($cats->manage_cap) || current_user_can($tags->manage_cap) ) : ?>
     96<div class="tool-box">
     97    <h3 class="title"><?php _e('Category&#47;Tag Conversion') ?></h3>
     98    <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>
     99</div>
     100<?php
     101endif;
     102
    92103do_action( 'tool_box' );
    93104?>
Note: See TracChangeset for help on using the changeset viewer.