mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
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
This commit is contained in:
parent
4685f9ea04
commit
4077461708
@ -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'] );
|
||||||
|
Loading…
Reference in New Issue
Block a user