WordPress.org

Make WordPress Core

Ticket #16369: 16369.diff

File 16369.diff, 846 bytes (added by solarissmoke, 3 years ago)

If cat2tag converter is active, link directly to it

  • wp-admin/tools.php

     
    4545if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?> 
    4646<div class="tool-box"> 
    4747    <h3 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h3> 
    48     <p><?php printf( __('<a href="%s">Use this</a> to convert categories to tags or tags to categories.'), 'import.php' ); ?></p> 
     48<?php 
     49        $cat2taglink = is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ? admin_url( 'admin.php?import=wpcat2tag' ) : admin_url( 'import.php' ); 
     50    printf( '<p>' . __('<a href="%s">Use this</a> to convert categories to tags or tags to categories.'), $cat2taglink ). '<p>'; 
     51?> 
    4952</div> 
    5053<?php 
    5154endif;