Ticket #5814 (closed defect: fixed)

Opened 7 months ago

Last modified 1 month ago

Unable to make new posts with XML-RPC and metaWeblog.newPost with post_type = 'post'

Reported by: malex Assigned to: ryan
Priority: normal Milestone: 2.5
Component: XML-RPC Version: 2.3.3
Severity: normal Keywords:
Cc:

Description

I tried creating a new post using XML-RPC and the metaWeblog.newPost method, but I received an "Invalid post type" error. It looks like line 989 of xmlrpc.php is testing $content_type[ 'post_type'] when it should be testing $content_struct[ 'post_type']. There is a similar problem on line 1210.

The attached patch fixes the problem for me.

Attachments

xmlrpc.php.patch (0.7 kB) - added by malex on 02/11/08 02:21:19.

Change History

02/11/08 02:21:19 changed by malex

  • attachment xmlrpc.php.patch added.

02/11/08 05:00:22 changed by josephscott

This patch is correct, looks like typo'd that on a previous patch.

The patch should also be applied to 2.3 branch so that it picks it up if there is another release.

02/11/08 05:54:48 changed by ryan

  • owner changed from anonymous to ryan.

02/13/08 17:53:52 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6814]) metaWeblog.newPost fix. Props malex. fixes #5814 for 2.3

02/13/08 17:54:09 changed by ryan

(In [6815]) metaWeblog.newPost fix. Props malex. fixes #5814 for 2.5

07/15/08 16:24:44 changed by ryan

  • milestone changed from 2.3.4 to 2.9.

Milestone 2.3.4 deleted

07/30/08 20:30:32 changed by westi

  • milestone changed from 2.9 to 2.5.