From f75f20b517c7a64daeda0f0808b1b94f2ed24905 Mon Sep 17 00:00:00 2001 From: rob1n Date: Sat, 7 Apr 2007 19:04:57 +0000 Subject: [PATCH] Put the sorting on hold, and add empty contructor. git-svn-id: https://develop.svn.wordpress.org/trunk@5210 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- wp-admin/import/wp-cat2tag.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index f7afa97d3a..116fcf69b1 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1870,7 +1870,7 @@ function register_importer( $id, $name, $description, $callback ) { function get_importers() { global $wp_importers; - usort($wp_importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);')); +// usort($wp_importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);')); return $wp_importers; } diff --git a/wp-admin/import/wp-cat2tag.php b/wp-admin/import/wp-cat2tag.php index 9baa600467..901d6fe91e 100644 --- a/wp-admin/import/wp-cat2tag.php +++ b/wp-admin/import/wp-cat2tag.php @@ -143,9 +143,13 @@ class WP_Categories_to_Tags { $this->footer(); } + + function WP_Categories_to_Tags() { + // Do nothing. + } } -$wp_cat2tag_importer = new WP_Categories_to_Tags; +$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'));