mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
XMLRPC: Support searching via wp.getPosts() fixes #21623 props ericmann.
git-svn-id: http://core.svn.wordpress.org/trunk@21936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8e08eb3c2
commit
2fcdb3395d
@ -1475,6 +1475,10 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
if ( isset( $filter['order'] ) )
|
if ( isset( $filter['order'] ) )
|
||||||
$query['order'] = $filter['order'];
|
$query['order'] = $filter['order'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset( $filter['s'] ) ) {
|
||||||
|
$query['s'] = $filter['s'];
|
||||||
|
}
|
||||||
|
|
||||||
$posts_list = wp_get_recent_posts( $query );
|
$posts_list = wp_get_recent_posts( $query );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user