[wp-trac] [WordPress Trac] #28014: XML-RPC posting to wrong "blog" on Multisite
WordPress Trac
noreply at wordpress.org
Thu Apr 24 18:27:05 UTC 2014
#28014: XML-RPC posting to wrong "blog" on Multisite
--------------------------+-----------------------------
Reporter: rtvenge | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.9
Severity: normal | Keywords:
Focuses: multisite |
--------------------------+-----------------------------
When trying to post wp.newPost to "blog" on multisite instance via XML-RPC
(other than main blog aka blog_id=1), the blog doesn't post to the blog_id
specified, but rather to blog_id = 1.
'''To replicate:'''
Post XML (below) to http://myrootmultisite.com/xmlrpc.php:
{{{
<?xml version="1.0" encoding="iso-8859-1"?>
<methodCall>
<methodName>wp.newPost</methodName>
<params>
<param><value>3</value></param>
<param><value>USERNAME</value></param>
<param><value>PASSWORD</value></param>
<param>
<value>
<struct>
<member>
<name>post_type</name>
<value><string>post</string></value>
</member>
<member>
<name>post_title</name>
<value><string>Test XML-RPC Post</string></value>
</member>
<member>
<name>post_content</name>
<value><string>Content of the
post.</string></value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
}}}
'''Expected result:''' post is created under blog_id 3.
'''Actual result:''' post is created under blog_id 1.
It's presumably ignoring blog_id.
'''Workaround'''
Workaround is to change domain to blog_id's domain (ex:
mysite.multisite.com) rather than root domain (ex: multisite.com). This
does not work for me, as I'm using domain mapping and cannot create an SSL
Cert for every domain name.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28014>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list