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
This commit is contained in:
Ryan Boren 2012-05-22 22:25:17 +00:00
parent 8ff3ad7903
commit ee33772ce7

View File

@ -1363,7 +1363,7 @@ class wp_xmlrpc_server extends IXR_Server {
$query['post_status'] = $filter['post_status']; $query['post_status'] = $filter['post_status'];
if ( isset( $filter['number'] ) ) if ( isset( $filter['number'] ) )
$query['number'] = absint( $filter['number'] ); $query['numberposts'] = absint( $filter['number'] );
if ( isset( $filter['offset'] ) ) if ( isset( $filter['offset'] ) )
$query['offset'] = absint( $filter['offset'] ); $query['offset'] = absint( $filter['offset'] );