« Entering the world of Wikis
» Help! WP is duplicating content when saving …

wordpress

Extending XML-RPC on WPMU

07.11.08 | Comment?

Sorry - but I don’t know why everybody is ranting about commercial or at least 1.0 software for content publishing - at least those software packages are (in most cases) complete while distributing … not the same with Wordpress MU or at least the XML-RPC part of it. First it misses a core WP method - see the posting by Lichao. Further it does not support the Multi-Site/-User functionality of WPMU … while using a desktop editor like w.bloggar I neither get all my blogs nor can I administrate them separately.
You have to conduct the following changes to the file:

  1. First - comment the section if ( $blog->site_id != 1 ) continue; because while using unique URLs for the WPMU blogs, each one has its own $site_id (see this posting!)
  2. Further - while executing WPs core functionality each method needs to be set into the scope/context of the blog the external user has definded. The methods therefore have the $blog_id variable as first argument but none of the methods are taking this into account. Therefore I added the following line after the do_action()-call: switch_to_blog($blog_id); . But watch out for the two need mw_ methods - here the authors of the xml-rpc-file changed the variable characters from blog_id to blog_ID.

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


Comments links could be nofollow free.

« Entering the world of Wikis
» Help! WP is duplicating content when saving …