Make WordPress Core


Ignore:
Timestamp:
06/16/2015 04:29:04 AM (9 years ago)
Author:
boonebgorges
Message:

Tag/category conversion link on edit-tags.php should point to specific importer page when cat2tag plugin is active.

Props solarissmoke, c3mdigital.
Fixes #16369.

File:
1 edited

Legend:

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

    r32642 r32792  
    303303
    304304$class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated';
     305
     306if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) {
     307    $import_link = admin_url( 'admin.php?import=wpcat2tag' );
     308} else {
     309    $import_link = admin_url( 'import.php' );
     310}
     311
    305312?>
    306313
     
    348355</p>
    349356<?php if ( current_user_can( 'import' ) ) : ?>
    350 <p><?php printf(__('Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.'), 'import.php') ?></p>
     357<p><?php printf( __( 'Categories can be selectively converted to tags using the <a href="%s">category to tag converter</a>.' ), esc_url( $import_link ) ) ?></p>
    351358<?php endif; ?>
    352359</div>
    353360<?php elseif ( 'post_tag' == $taxonomy && current_user_can( 'import' ) ) : ?>
    354361<div class="form-wrap">
    355 <p><?php printf(__('Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>.'), 'import.php') ;?></p>
     362<p><?php printf( __( 'Tags can be selectively converted to categories using the <a href="%s">tag to category converter</a>.' ), esc_url( $import_link ) ) ;?></p>
    356363</div>
    357364<?php endif;
Note: See TracChangeset for help on using the changeset viewer.