From 2fcdb3395d22ed139ad9c145b97cf6b0edafaaab Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 21 Sep 2012 10:18:32 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-xmlrpc-server.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 96f8094107..44feadc09d 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -1475,6 +1475,10 @@ class wp_xmlrpc_server extends IXR_Server { if ( isset( $filter['order'] ) ) $query['order'] = $filter['order']; } + + if ( isset( $filter['s'] ) ) { + $query['s'] = $filter['s']; + } $posts_list = wp_get_recent_posts( $query );