[wp-trac] [WordPress Trac] #20723: wp.getPosts xmlrpc using "number" when it should be using "numberposts"

WordPress Trac wp-trac at lists.automattic.com
Tue May 22 02:57:52 UTC 2012


#20723: wp.getPosts xmlrpc using "number" when it should be using "numberposts"
--------------------------+-----------------------------
 Reporter:  djcp          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  3.4
 Severity:  normal        |   Keywords:  api
--------------------------+-----------------------------
 See $SUBJECT.  Using "number" to limit the number of posts returned is
 incorrect, as wp_get_recent_posts() expects this parameter to be called
 "numberposts".

 A patch is attached to fix the parameter name to be "numberposts" - though
 we could have the API externally expose "number" yet give the parameter
 "numberposts" to wp_get_recent_posts().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20723>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list