#1816 closed defect (bug) (wontfix)
Link Category before/after settings nonfunctional
Reported by: | Dachannien | Owned by: | markjaquith |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 1.5.2 |
Component: | General | Keywords: | link category option bg|has-patch bg|dev-feedback |
Focuses: | Cc: |
Description
There are settings in the site admin panel (Links/Link Categories) for code to insert before and after each link as well as between the link and the description. While the option is properly inserted into the database, it is never used by get_links_list() in wp-includes/links.php .
The solution is simple - modify the db query in get_links_list() to ask for the three additional fields:
$cats = $wpdb->get_results(" SELECT DISTINCT link_category, cat_name, show_images, show_description, show_rating, show_updated, sort_order, sort_desc, list_limit, text_before_link, text_after_link, text_after_all FROM `$wpdb->links` ...
and then use those values in the call to get_links:
get_links($cat['link_category'], $cat['text_before_link'], $cat['text_after_all'], $cat['text_after_link'], ...
Attachments (1)
Change History (7)
#1
@
19 years ago
- Keywords bg|has-patch bg|dev-feedback added
- Milestone set to 1.6
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
This patch should do the trick. Thanks!
Note: See
TracTickets for help on using
tickets.
Patch for wp 1.6 SVN