diff --git a/wp-admin/import/wp-cat2tag.php b/wp-admin/import/wp-cat2tag.php index d38e17a1e3..f4fa522628 100644 --- a/wp-admin/import/wp-cat2tag.php +++ b/wp-admin/import/wp-cat2tag.php @@ -1,16 +1,16 @@ -'; - print '

' . __('Convert Categories to Tags') . '

'; + echo '
'; + echo '

' . __('Convert Categories to Tags') . '

'; } function footer() { - print '
'; + echo ''; } function populate_all_categories() { @@ -26,24 +26,51 @@ class WP_Categories_to_Tags { function welcome() { $this->populate_all_categories(); - print '
'; + echo '
'; if (count($this->all_categories) > 0) { - print '

' . __('Howdy! This converter allows you to selectively convert existing categories to tags. To get started, check the checkboxes of the categories you wish to be converted, then click the Convert button.') . '

'; - print '

' . __('Keep in mind that if you convert a category with child categories, those child categories get their parent setting removed, so they\'re in the root.') . '

'; + echo '

' . __('Hey there. Here you can selectively converts existing categories to tags. To get started, check the categories you wish to be converted, then click the Convert button.') . '

'; + echo '

' . __('Keep in mind that if you convert a category with child categories, the children become top-level orphans.') . '

'; $this->categories_form(); } else { - print '

'.__('You have no categories to convert!').'

'; + echo '

'.__('You have no categories to convert!').'

'; } - print '
'; + echo '
'; } function categories_form() { - print '
'; +?> + + +

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

'; - print '
'; + echo '

'; + + echo ''; } function _category_children($parent, $hier) { - print ''; } function _category_exists($cat_id) { @@ -103,9 +131,9 @@ class WP_Categories_to_Tags { global $wpdb; if ( (!isset($_POST['cats_to_convert']) || !is_array($_POST['cats_to_convert'])) && empty($this->categories_to_convert)) { - print '
'; - print '

' . sprintf(__('Uh, oh. Something didn\'t work. Please try again.'), 'admin.php?import=wp-cat2tag') . '

'; - print '
'; + echo '
'; + echo '

' . sprintf(__('Uh, oh. Something didn’t work. Please try again.'), 'admin.php?import=wp-cat2tag') . '

'; + echo '
'; return; } @@ -114,12 +142,12 @@ class WP_Categories_to_Tags { $this->categories_to_convert = $_POST['cats_to_convert']; $hier = _get_term_hierarchy('category'); - print ''; + echo '

' . sprintf( __('We’re all done here, but you can always convert more.'), 'admin.php?import=wp-cat2tag' ) . '

'; } function init() { @@ -179,9 +208,9 @@ class WP_Categories_to_Tags { $this->header(); if (!current_user_can('manage_categories')) { - print '
'; - print '

' . __('Cheatin’ uh?') . '

'; - print '
'; + echo '
'; + echo '

' . __('Cheatin’ uh?') . '

'; + echo '
'; } else { if ( $step > 1 ) check_admin_referer('import-cat2tag'); @@ -209,4 +238,4 @@ $wp_cat2tag_importer = new WP_Categories_to_Tags(); register_importer('wp-cat2tag', __('Categories to Tags Converter'), __('Convert existing categories to tags, selectively.'), array(&$wp_cat2tag_importer, 'init')); -?> +?> \ No newline at end of file