From 91512a916135248cc25a24dbe1f0ea95d5984c74 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 16 Jun 2015 04:29:04 +0000 Subject: [PATCH] Tag/category conversion link on edit-tags.php should point to specific importer page when cat2tag plugin is active. Props solarissmoke, c3mdigital. Fixes #16369. git-svn-id: https://develop.svn.wordpress.org/trunk@32792 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-tags.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php index 5720b7a7ef..327493f475 100644 --- a/src/wp-admin/edit-tags.php +++ b/src/wp-admin/edit-tags.php @@ -302,6 +302,13 @@ if ( isset( $_REQUEST['message'] ) && ( $msg = (int) $_REQUEST['message'] ) ) { } $class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated'; + +if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { + $import_link = admin_url( 'admin.php?import=wpcat2tag' ); +} else { + $import_link = admin_url( 'import.php' ); +} + ?>
@@ -347,12 +354,12 @@ endif; ?> ?>

-

category to tag converter.'), 'import.php') ?>

+

category to tag converter.' ), esc_url( $import_link ) ) ?>

-

tag to category converter.'), 'import.php') ;?>

+

tag to category converter.' ), esc_url( $import_link ) ) ;?>