FYI, I wanted to use Custom Post Types and WP 3.0 in a new blog and manage content via XMLRPC.<div><br></div><div>XMLRPC.php isn't updated to handle this, it seems.</div><div><br></div><div>mw_NewPost just needs a tweak to get it to work.</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 11px; "><pre><a name="l1993"><span class="linenum" style="color: rgb(85, 85, 85); ">1993</span></a> <a class="var it112" href="_variables/post_type.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$post_type</a> = 'post';
<a name="l1994"><span class="linenum" style="color: rgb(85, 85, 85); ">1994</span></a> <a class="var it369" href="_variables/page_template.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$page_template</a> = '';
<a name="l1995"><span class="linenum" style="color: rgb(85, 85, 85); ">1995</span></a> if ( !<a class="function" href="_functions/empty.html" style="text-decoration: none; color: rgb(17, 102, 17); ">empty</a>( <a class="var it411" href="_variables/content_struct.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$content_struct</a>['post_type'] ) ) {
<a name="l1996"><span class="linenum" style="color: rgb(85, 85, 85); ">1996</span></a> if ( <a class="var it411" href="_variables/content_struct.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$content_struct</a>['post_type'] == 'page' ) {
<a name="l1997"><span class="linenum" style="color: rgb(85, 85, 85); ">1997</span></a> <a class="var it443" href="_variables/cap.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$cap</a> = ( <a class="var it376" href="_variables/publish.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$publish</a> ) ? 'publish_pages' : 'edit_pages';
<a name="l1998"><span class="linenum" style="color: rgb(85, 85, 85); ">1998</span></a> <a class="var it447" href="_variables/error_message.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$error_message</a> = <a class="function" href="_functions/__.html" style="text-decoration: none; color: rgb(17, 102, 17); ">__</a>( 'Sorry, you are not allowed to publish pages on this site.' );
<a name="l1999"><span class="linenum" style="color: rgb(85, 85, 85); ">1999</span></a> <a class="var it112" href="_variables/post_type.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$post_type</a> = 'page';
<a name="l2000"><span class="linenum" style="color: rgb(85, 85, 85); ">2000</span></a> if ( !<a class="function" href="_functions/empty.html" style="text-decoration: none; color: rgb(17, 102, 17); ">empty</a>( <a class="var it411" href="_variables/content_struct.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$content_struct</a>['wp_page_template'] ) )
<a name="l2001"><span class="linenum" style="color: rgb(85, 85, 85); ">2001</span></a> <a class="var it369" href="_variables/page_template.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$page_template</a> = <a class="var it411" href="_variables/content_struct.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$content_struct</a>['wp_page_template'];
<a name="l2002"><span class="linenum" style="color: rgb(85, 85, 85); ">2002</span></a> } elseif ( <a class="var it411" href="_variables/content_struct.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$content_struct</a>['post_type'] == 'post' ) {
<a name="l2003"><span class="linenum" style="color: rgb(85, 85, 85); ">2003</span></a> <span class="comment" style="color: rgb(68, 68, 68); font-style: italic; "> // This is the default, no changes needed</span>
<a name="l2004"><span class="linenum" style="color: rgb(85, 85, 85); ">2004</span></a> } else {
<a name="l2005"><span class="linenum" style="color: rgb(85, 85, 85); ">2005</span></a> <span class="comment" style="color: rgb(68, 68, 68); font-style: italic; "> // No other post_type values are allowed here</span>
<a name="l2006"><span class="linenum" style="color: rgb(85, 85, 85); ">2006</span></a> return <span class="keyword" style="font-weight: bold; ">new </span><a class="class" href="_classes/ixr_error.html" style="text-decoration: none; color: rgb(34, 34, 255); ">IXR_Error</a>( 401, <a class="function" href="_functions/__.html" style="text-decoration: none; color: rgb(17, 102, 17); ">__</a>( 'Invalid post type.' ) );
<a name="l2007"><span class="linenum" style="color: rgb(85, 85, 85); ">2007</span></a> }
<a name="l2008"><span class="linenum" style="color: rgb(85, 85, 85); ">2008</span></a> }</pre><pre><br></pre><pre>I just edited up the if/elseif/else to take into account my custom post type names, and set the post_type key/value to the appropriate post type in my client.</pre>
<pre>Works fine so far.</pre></span></div>