WordPress.org

Make WordPress Core

Changeset 13450


Ignore:
Timestamp:
02/27/10 04:04:36 (6 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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tags.php

    r13268 r13450  
    309309<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> 
    310310</div> 
    311 <?php endif; ?> 
    312  
     311<?php elseif ( 'post_tag' == $taxonomy ) : ?> 
     312<div class="form-wrap"> 
     313<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&amp;step=3') ;?>.</p>  
     314</div> 
     315<?php endif; 
     316do_action('after-' . $taxonomy . '-table', $taxonomy); 
     317?> 
    313318 
    314319</div> 
  • 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.