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:
parent
8ff3ad7903
commit
ee33772ce7
@ -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'] );
|
||||
|
Loading…
Reference in New Issue
Block a user