Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#4874 closed defect (bug) (wontfix)

XMLRPC pingback accepts array elements as separate parameters

Reported by: ringmaster Owned by:
Milestone: Priority: low
Severity: normal Version:
Component: XML-RPC Keywords:
Focuses: Cc:


According to the pingback spec, the XMLRPC server should accept two parameters in the RPC for pingback.

WordPress seems to accept a single array parameter for pingbacks, in addition to two separate parameters. While this is more permissive behavior than what is required, and obviously it works, I'm not sure if it is indicative of a larger issue in handling XMLRPC requests properly, since it really shouldn't accept the single array's two elements as two separate parameters to the RPC.

Change History (4)

#1 @foolswisdom
14 years ago

  • Milestone set to 2.4 (next)

ringmaster, you didn't tell us what version you experienced this behavior with.

#2 @markjaquith
14 years ago

Skimming /wp-includes/class-IXR.php, it appears to be a feature of the IXR library (look at the IXR_Value class.

        if ($type == 'array') {
            for ($i = 0, $j = count($this->data); $i < $j; $i++) {
                $this->data[$i] = new IXR_Value($this->data[$i]);

#3 @josephscott
14 years ago

  • Cc josephscott added

I agree that this is more flexibility than the spec requires, but it doesn't appear to be causing any problems.

#4 @markjaquith
14 years ago

  • Milestone 2.4 deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Let's just leave it alone, then.

Note: See TracTickets for help on using tickets.