Make WordPress Core

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)

#2 @SergeyBiryukov
12 years ago

  • Focuses docs added

#3 @markoheijnen
12 years ago

  • Keywords needs-docs removed
  • Milestone Awaiting ReviewWordPress.org
  • Resolutionfixed
  • Status newclosed

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.