--- wp-includes/links.php.orig
+++ wp-includes/links.php.new
@@ -544,7 +544,8 @@
	$cats =	$wpdb->get_results("
		SELECT DISTINCT	link_category, cat_name, show_images,
			show_description, show_rating, show_updated, sort_order,
-			sort_desc, list_limit
+			sort_desc, list_limit,
+			text_before_link, text_after_link, text_after_all
		FROM `$tablelinks`
		LEFT JOIN `$tablelinkcategories` ON (link_category = cat_id)
		WHERE link_visible =  'Y'
@@ -559,11 +560,15 @@
			$orderby = $cat['sort_order'];
			$orderby = (bool_from_yn($cat['sort_desc'])?'_':'') . $orderby;

+			$text_before_link = stripslashes($cat['text_before_link']);
+			$text_after_link = stripslashes($cat['text_after_link']);
+			$text_after_all	= stripslashes($cat['text_after_all']);
+
			// Display the category	name
			echo '	<li id="'.sanitize_title($cat['cat_name']).'">'	. stripslashes($cat['cat_name']) . "\n\t<ul>\n";
			// Call	get_links() with all the appropriate params
			get_links($cat['link_category'],
-				'<li>',"</li>","\n",
+				$text_before_link,$text_after_all,$text_after_link,
				bool_from_yn($cat['show_images']),
				$orderby,
				bool_from_yn($cat['show_description']),

