Opened 14 years ago
Closed 12 years ago
#20630 closed defect (bug) (fixed)
XML-RPC Extending documentation for methods called with a single param
| Reported by: | scott.gonzalez | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | WordPress.org |
| Component: | XML-RPC | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
Description
When an XML-RPC method is called with a single parameter, the method will receive the value directly instead of receiving an array with a single value. This seems to be intended, though unexpected, behavior. The documentation should be updated to mention this.
The related code is inside IXR_Server->call().
Change History (3)
#3
@
12 years ago
- Keywords needs-docs removed
- Milestone Awaiting Review → WordPress.org
- Resolution → fixed
- Status new → closed
Added a small note to it. Note: Passing a single argument to a XML-RPC call will not result in an array. You then can request the value by just using $args.. If you want it to make it better you can do that too.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
http://codex.wordpress.org/XML-RPC_Extending