From 261f318c8a3e52d9da5678082130202e5557bae3 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 6 Jun 2009 14:44:38 +0000 Subject: [PATCH] Use array instead of query string notation. Prop dd32, kamiyeye. fixes #10047 git-svn-id: http://svn.automattic.com/wordpress/trunk@11528 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- xmlrpc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index ed1da6e640a2..963e27ebfed9 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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) ); } /** diff --git a/xmlrpc.php b/xmlrpc.php index f015fb848357..55279426cb1c 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -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.