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

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 20 16:31:51 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:  mobile has-patch  |
------------------------------+------------------------------

Comment (by nacin):

 I'm not sure how complicated a move from wp_get_recent_posts() to WP_Query
 would be, but I think it would be great if we could make the switch. We
 should make sure we have unit tests for all parameters that wp.getPosts
 accepts.

 I think I would rather we introduce just 's' rather than 'search'. The
 single 's' is universal in WordPress, and with proper documentation (which
 we have in the Codex), an app developer will know exactly what to use.

 Aside from that, I also think that moving to WP_Query is a bit too low-
 level. We'll need to use wp() so only public query variables are exposed.

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


More information about the wp-trac mailing list