[wp-trac] [WordPress Trac] #21623: XML-RPC method wp.getPosts should be able to search

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 19 16:05:04 UTC 2012


#21623: XML-RPC method wp.getPosts should be able to search
--------------------------------+------------------------------
 Reporter:  markoheijnen        |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  XML-RPC             |     Version:  3.4
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch mobile  |
--------------------------------+------------------------------

Comment (by maxcutler):

 `wp.getPosts` should be refactored to use `WP_Query` instead of
 `wp_get_recent_posts`, and at the same time it can be expanded to support
 the (undocumented?) `s` query arg for searching.

 Beyond generic text search, `wp.getPosts` should really support other
 types of "searching" like by-category/tag/term, by-custom-field, etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21623#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list