Switch to passing arrays instead of query strings to functions. Fixes #6647 props filosofo and hakre.

git-svn-id: https://develop.svn.wordpress.org/trunk@12657 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2010-01-08 08:34:39 +00:00
parent 6422cc2d63
commit 2a93c55f43
10 changed files with 12 additions and 12 deletions

View File

@@ -592,7 +592,7 @@ function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit
function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
$links = get_bookmarks("category=$category&orderby=$orderby&limit=$limit");
$links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;
$links_array = array();
foreach ($links as $link)