From 66c1d75c1cf6d1698261aa4c19610ee0aa529ad0 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 16 Jun 2015 04:30:26 +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. Built from https://develop.svn.wordpress.org/trunk@32792 git-svn-id: http://core.svn.wordpress.org/trunk@32763 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tags.php | 11 +++++++++-- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 5720b7a7ef..327493f475 100644 --- a/wp-admin/edit-tags.php +++ b/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 ) ) ;?>