Make WordPress Core

Opened 12 years ago

Closed 10 years ago

#20630 closed defect (bug) (fixed)

XML-RPC Extending documentation for methods called with a single param

Reported by: scottgonzalez's profile scott.gonzalez Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords:
Focuses: docs Cc:


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)

#2 @SergeyBiryukov
10 years ago

  • Focuses docs added

#3 @markoheijnen
10 years ago

  • Keywords needs-docs removed
  • Milestone changed from Awaiting Review to
  • Resolution set to fixed
  • Status changed from new to 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.