From ee33772ce7258496f6284b4ef4232913f0648ac9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 22 May 2012 22:25:17 +0000 Subject: [PATCH] Fix post limiting in wp_getPosts(). Props djcp. fixes #20723 git-svn-id: https://develop.svn.wordpress.org/trunk@20846 602fd350-edb4-49c9-b593-d223f7449a82 --- 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'] );