mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Use array calling style. Props Denis-de-Bernardy. see #6647
git-svn-id: https://develop.svn.wordpress.org/trunk@12515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -986,7 +986,7 @@ function get_links($category = -1, $before = '', $after = '<br />', $between = '
|
||||
if ( $category == -1 ) //get_bookmarks uses '' to signify all categories
|
||||
$category = '';
|
||||
|
||||
$results = get_bookmarks("category=$category&orderby=$orderby&order=$order&show_updated=$show_updated&limit=$limit");
|
||||
$results = get_bookmarks(array('category' => $category, 'orderby' => $orderby, 'order' => $order, 'show_updated' => $show_updated, 'limit' => $limit));
|
||||
|
||||
if ( !$results )
|
||||
return;
|
||||
@@ -1083,7 +1083,7 @@ function get_links_list($order = 'name', $deprecated = '') {
|
||||
if ( !isset($direction) )
|
||||
$direction = '';
|
||||
|
||||
$cats = get_categories("type=link&orderby=$order&order=$direction&hierarchical=0");
|
||||
$cats = get_categories(array('type' => 'link', 'orderby' => $order, 'order' => $direction, 'hierarchical' => 0));
|
||||
|
||||
// Display each category
|
||||
if ( $cats ) {
|
||||
|
||||
Reference in New Issue
Block a user