X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f5fcdc7994bb67cce809bc4777944ae8b7fad4a4..refs/tags/wordpress-4.3:/wp-admin/edit-tags.php diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 7afbec8b..db8319cd 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -20,7 +20,11 @@ if ( ! $tax ) if ( ! current_user_can( $tax->cap->manage_terms ) ) wp_die( __( 'Cheatin’ uh?' ), 403 ); -// $post_type is set when the WP_Terms_List_Table instance is created +/** + * $post_type is set when the WP_Terms_List_Table instance is created + * + * @global string $post_type + */ global $post_type; $wp_list_table = _get_list_table('WP_Terms_List_Table'); @@ -298,13 +302,20 @@ 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' ); +} + ?>
-

' . __('Search results for “%s”') . '', esc_html( wp_unslash($_REQUEST['s']) ) ); ?> -

+

@@ -343,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 ) ) ;?>