mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Allow 'limit = 0' in Link Categories to hide a category.
git-svn-id: https://develop.svn.wordpress.org/trunk@960 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
764f2d1806
commit
fb4d6d4fd9
@ -530,10 +530,14 @@ function get_links_list($order = 'name', $hide_if_empty = 'obsolete') {
|
||||
|
||||
|
||||
// Fetch the link category data as an array of hashes
|
||||
$cats = $wpdb->get_results("SELECT DISTINCT link_category, cat_name, show_images,
|
||||
show_description, show_rating, show_updated, sort_order, sort_desc, list_limit
|
||||
FROM `$tablelinks` LEFT JOIN `$tablelinkcategories` ON (link_category = cat_id)
|
||||
WHERE link_visible = 'Y'
|
||||
$cats = $wpdb->get_results("
|
||||
SELECT DISTINCT link_category, cat_name, show_images,
|
||||
show_description, show_rating, show_updated, sort_order,
|
||||
sort_desc, list_limit
|
||||
FROM `$tablelinks`
|
||||
LEFT JOIN `$tablelinkcategories` ON (link_category = cat_id)
|
||||
WHERE link_visible = 'Y'
|
||||
AND list_limit <> 0
|
||||
ORDER BY $cat_order $direction ", ARRAY_A);
|
||||
|
||||
// Display each category
|
||||
|
Loading…
x
Reference in New Issue
Block a user