[wp-trac] [WordPress Trac] #28014: XML-RPC posting to wrong "blog" on Multisite

WordPress Trac noreply at wordpress.org
Thu May 8 22:54:01 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:  major         |  Resolution:
 Keywords:  has-patch     |     Focuses:  multisite
--------------------------+------------------------------

Comment (by nacin):

 This has never worked. Ultimately, switch_to_blog() isn't enough, as it
 wouldn't result in plugins loading, or the proper theme included, etc.

 It should be possible to hijack an XML-RPC request before we even choose a
 site in wp-includes/ms-settings.php, then based on the incoming blog ID,
 pick a particular site. At the moment though, this isn't something we are
 going to be able to do in core. First, it's really hacky. And second, if
 we suddenly start listening to the blog ID after all of these years, I
 guarantee some existing XML-RPC call will break.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28014#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list