| 1 | --- wp-includes/links.php.orig |
|---|
| 2 | +++ wp-includes/links.php.new |
|---|
| 3 | @@ -544,7 +544,8 @@ |
|---|
| 4 | $cats = $wpdb->get_results(" |
|---|
| 5 | SELECT DISTINCT link_category, cat_name, show_images, |
|---|
| 6 | show_description, show_rating, show_updated, sort_order, |
|---|
| 7 | - sort_desc, list_limit |
|---|
| 8 | + sort_desc, list_limit, |
|---|
| 9 | + text_before_link, text_after_link, text_after_all |
|---|
| 10 | FROM `$tablelinks` |
|---|
| 11 | LEFT JOIN `$tablelinkcategories` ON (link_category = cat_id) |
|---|
| 12 | WHERE link_visible = 'Y' |
|---|
| 13 | @@ -559,11 +560,15 @@ |
|---|
| 14 | $orderby = $cat['sort_order']; |
|---|
| 15 | $orderby = (bool_from_yn($cat['sort_desc'])?'_':'') . $orderby; |
|---|
| 16 | |
|---|
| 17 | + $text_before_link = stripslashes($cat['text_before_link']); |
|---|
| 18 | + $text_after_link = stripslashes($cat['text_after_link']); |
|---|
| 19 | + $text_after_all = stripslashes($cat['text_after_all']); |
|---|
| 20 | + |
|---|
| 21 | // Display the category name |
|---|
| 22 | echo ' <li id="'.sanitize_title($cat['cat_name']).'">' . stripslashes($cat['cat_name']) . "\n\t<ul>\n"; |
|---|
| 23 | // Call get_links() with all the appropriate params |
|---|
| 24 | get_links($cat['link_category'], |
|---|
| 25 | - '<li>',"</li>","\n", |
|---|
| 26 | + $text_before_link,$text_after_all,$text_after_link, |
|---|
| 27 | bool_from_yn($cat['show_images']), |
|---|
| 28 | $orderby, |
|---|
| 29 | bool_from_yn($cat['show_description']), |
|---|