Make WordPress Core

Changeset 14978


Ignore:
Timestamp:
05/27/2010 04:35:11 AM (15 years ago)
Author:
nacin
Message:

Revert [14853], [14778], returning tag/cat converter to tools.php and edit-tags.php. Link to import.php instead of the converter directly as it may not be installed. see #13566.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r14962 r14978  
    339339<div class="form-wrap">
    340340<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>
     341<p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'import.php') ?></p>
     342</div>
     343<?php elseif ( 'post_tag' == $taxonomy ) : ?>
     344<div class="form-wrap">
     345<p><?php printf(__('Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>'), 'import.php') ;?>.</p>
    341346</div>
    342347<?php endif;
  • trunk/wp-admin/tools.php

    r14966 r14978  
    3838endif;
    3939
     40$cats = get_taxonomy('category');
     41$tags = get_taxonomy('post_tag');
     42
     43if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
     44<div class="tool-box">
     45    <h3 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h3>
     46    <p><?php printf( __('<a href="%s">Use this</a> to convert categories to tags or tags to categories</a>.'), 'import.php' ); ?></p>
     47</div>
     48<?php
     49endif;
     50
    4051do_action( 'tool_box' );
    4152?>
Note: See TracChangeset for help on using the changeset viewer.