Opened 14 years ago
Closed 14 years ago
#20723 closed defect (bug) (fixed)
wp.getPosts xmlrpc using "number" when it should be using "numberposts"
| Reported by: | djcp | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | XML-RPC | Version: | 3.4 |
| Severity: | normal | Keywords: | api has-patch commit |
| Cc: | Focuses: |
Description
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().
Attachments (2)
Change History (10)
#3
@
14 years ago
- Milestone Awaiting Review → 3.4
Related: #18433
The change happened in ticket:18433:wp.getPosts.6.patch, the earlier patches used numberposts.
#4
@
14 years ago
numberposts is ancient cruft. I'd rather not bubble it up. How about exposing number in wp.getPosts and passing it along as numberposts per the alternative suggested in the description.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
To clarify, this means setting the number of posts that wp.getPosts returns is busted.