Skip to content

Commit

Permalink
Use array instead of query string notation. Prop dd32, kamiyeye. fixe…
Browse files Browse the repository at this point in the history
…s #10047

git-svn-id: http://svn.automattic.com/wordpress/trunk@11528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jun 6, 2009
1 parent 3dce6ba commit 261f318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-includes/link-template.php
Expand Up @@ -1038,7 +1038,7 @@ function get_boundary_post($in_same_cat = false, $excluded_categories = '', $sta

$order = $start ? 'ASC' : 'DESC';

return get_posts("numberposts=1&order=$order&orderby=ID&category=$categories");
return get_posts( array('numberposts' => 1, 'order' => $order, 'orderby' => 'ID', 'category' => $categories) );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion xmlrpc.php
Expand Up @@ -604,7 +604,7 @@ function wp_getPages($args) {
$page_limit = $num_pages;
}

$pages = get_posts( "post_type=page&post_status=all&numberposts={$page_limit}" );
$pages = get_posts( array('post_type' => 'page', 'post_status' => 'all', 'numberposts' => $page_limit) );
$num_pages = count($pages);

// If we have pages, put together their info.
Expand Down

0 comments on commit 261f318

Please sign in to comment.