diff --git a/wp-admin/import/wp-cat2tag.php b/wp-admin/import/wp-cat2tag.php index 4402ad272b..d38e17a1e3 100644 --- a/wp-admin/import/wp-cat2tag.php +++ b/wp-admin/import/wp-cat2tag.php @@ -63,7 +63,7 @@ class WP_Categories_to_Tags { print ''; - print '

'; + print '

'; print ''; } @@ -172,41 +172,9 @@ class WP_Categories_to_Tags { print ''; } - function convert_all_confirm() { - print '
'; - - print '

' . __('Confirm') . '

'; - - print '

' . __('You are about to convert all categories to tags. Are you sure you want to continue?') . '

'; - - print '
'; - wp_nonce_field('import-cat2tag'); - print '

    

'; - print '
'; - - print '
'; - } - - function convert_all() { - global $wpdb; - - $this->populate_all_categories(); - foreach ( $this->all_categories as $category ) - $this->categories_to_convert[] = $category->term_id; - $this->convert_them(); - } - function init() { - if (isset($_POST['maybe_convert_all_cats'])) { - $step = 3; - } elseif (isset($_POST['yes_convert_all_cats'])) { - $step = 4; - } elseif (isset($_POST['no_dont_do_it'])) { - die('no_dont_do_it'); - } else { - $step = (isset($_GET['step'])) ? (int) $_GET['step'] : 1; - } + $step = (isset($_GET['step'])) ? (int) $_GET['step'] : 1; $this->header(); @@ -226,14 +194,6 @@ class WP_Categories_to_Tags { case 2 : $this->convert_them(); break; - - case 3 : - $this->convert_all_confirm(); - break; - - case 4 : - $this->convert_all(); - break; } }