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:
Ryan Boren
2009-12-23 15:31:02 +00:00
parent 30e399b3e7
commit dcd3604d90
16 changed files with 31 additions and 31 deletions

View File

@@ -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 ) {