diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-23 18:28:40 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-23 18:28:40 +0000 |
commit | 87bb8cd69cc593fe6bed330fb1791eac9df87167 (patch) | |
tree | 6b2ad252df89d2a1863198fd44b321b59e42ef54 /wp-admin/link-import.php | |
parent | 0cbda3349a2571904ea063fdd73e018299919589 (diff) | |
download | wordpress-mu-87bb8cd69cc593fe6bed330fb1791eac9df87167.tar.gz wordpress-mu-87bb8cd69cc593fe6bed330fb1791eac9df87167.tar.xz wordpress-mu-87bb8cd69cc593fe6bed330fb1791eac9df87167.zip |
Merge with WordPress, rev 6285 and untested
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1125 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/link-import.php')
-rw-r--r-- | wp-admin/link-import.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-admin/link-import.php b/wp-admin/link-import.php index e20a464..8dd2866 100644 --- a/wp-admin/link-import.php +++ b/wp-admin/link-import.php @@ -45,10 +45,10 @@ switch ($step) { <p style="clear: both; margin-top: 1em;"><?php _e('Now select a category you want to put these links in.') ?><br /> <?php _e('Category:') ?> <select name="cat_id"> <?php -$categories = get_categories('hide_empty=0'); +$categories = get_terms('link_category', 'get=all'); foreach ($categories as $category) { ?> -<option value="<?php echo $category->cat_ID; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->cat_name)); ?></option> +<option value="<?php echo $category->term_id; ?>"><?php echo wp_specialchars(apply_filters('link_category', $category->name)); ?></option> <?php } // end foreach ?> @@ -98,7 +98,7 @@ foreach ($categories as $category) { } else { $opml = file_get_contents($opml_url); } - + include_once('link-parse-opml.php'); $link_count = count($names); @@ -123,7 +123,7 @@ else } // end else if ( ! $blogrolling ) - apply_filters( 'wp_delete_file', $opml_url); + apply_filters( 'wp_delete_file', $opml_url); @unlink($opml_url); ?> </div> |