[wp-trac] [WordPress Trac] #5814: Unable to make new posts with
XML-RPC and metaWeblog.newPost with post_type = 'post'
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 11 02:20:03 GMT 2008
#5814: Unable to make new posts with XML-RPC and metaWeblog.newPost with post_type
= 'post'
---------------------+------------------------------------------------------
Reporter: malex | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3.4
Component: XML-RPC | Version: 2.3.3
Severity: normal | Keywords:
---------------------+------------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/5814>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list