Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4874 closed defect (bug) (wontfix)

XMLRPC pingback accepts array elements as separate parameters

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

Description

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
19 years ago

  • Milestone2.4 (next)

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

#2 @markjaquith
19 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
19 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
19 years ago

  • Milestone 2.4
  • Resolutionwontfix
  • Status newclosed

Let's just leave it alone, then.

Note: See TracTickets for help on using tickets.