From 4077461708ab95343d13138c79bdd9cd69751a54 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 22 May 2012 22:25:17 +0000 Subject: [PATCH] Fix post limiting in wp_getPosts(). Props djcp. fixes #20723 git-svn-id: http://core.svn.wordpress.org/trunk@20846 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 1a4d1ca312..470c9603e8 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -1363,7 +1363,7 @@ class wp_xmlrpc_server extends IXR_Server { $query['post_status'] = $filter['post_status']; if ( isset( $filter['number'] ) ) - $query['number'] = absint( $filter['number'] ); + $query['numberposts'] = absint( $filter['number'] ); if ( isset( $filter['offset'] ) ) $query['offset'] = absint( $filter['offset'] );