OK, I've added a new patch. As I mentioned in my note just before it, I haven't changed too much. Basically, you can specify "default" as the value of a post format and it will be converted to "0" automatically.<div>
<br></div><div>The actual, hard-coded post format array is:</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 class="var it4049" href="http://phpxref.ftwr.co.uk/wordpress/_variables/strings.html" style="text-decoration: none; color: rgb(136, 34, 34); ">$strings</a> = array(
'0' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Default', 'Post format' ),
'aside' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Aside', 'Post format' ),
'chat' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Chat', 'Post format' ),
'gallery' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Gallery', 'Post format' ),
'link' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Link', 'Post format' ),
'image' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Image', 'Post format' ),
'quote' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Quote', 'Post format' ),
'status' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Status', 'Post format' ),
'video' => <a class="function" href="http://phpxref.ftwr.co.uk/wordpress/_functions/_x.html" style="text-decoration: none; color: rgb(17, 102, 17); ">_x</a>( 'Video', 'Post format' )
);</pre></span>So you can see a "default" post actually has a post format slug of "0," which is what seemed to make no sense when we tested things. I'm going to leave the method that returns an array of post formats as-is for now. It's returning an accurate slug ("0") even if that seems counterintuitive. The same for the methods that get posts, they'll return the set slug for post formats.</div>
<div><br></div><div>However, the two methods that can set a post format (metaWeblog.newPost and metaWeblog.editPost) should be more flexible. After all, we should "be conservative in what we send, but liberal in what we receive." So you can send either "0" or "default" when setting a post format of "default," and the system will recognize both.</div>
<div><br></div><div>Take a look at the new patch and let me know what you think. I'd <i>really </i>like to get this committed ASAP ...</div><div><br></div><div>~Eric</div><div><br><div class="gmail_quote">On Wed, Nov 17, 2010 at 8:06 AM, Daniel Jalkut <span dir="ltr"><<a href="mailto:jalkut@red-sweater.com">jalkut@red-sweater.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Eric, thanks for picking up and running with this. Great contributions!<br>
<font color="#888888"><br>
Daniel<br>
</font><div><div></div><div class="h5"><br>
On Nov 17, 2010, at 11:04am, Eric Mann wrote:<br>
<br>
> Thanks for the feedback. I'll take a look at it tonight when I get done with work and see if there's a more elegant way to handle the "default" post format.<br>
><br>
> On Tue, Nov 16, 2010 at 11:06 PM, Joseph Scott <<a href="mailto:joseph@josephscott.org">joseph@josephscott.org</a>> wrote:<br>
> Sorry for not getting back to this sooner. I ran through a few tests<br>
> with your latest patch and found a couple of times, around the<br>
> 'default' post format. See<br>
> <a href="http://core.trac.wordpress.org/ticket/15405#comment:8" target="_blank">http://core.trac.wordpress.org/ticket/15405#comment:8</a> for details.<br>
><br>
> On Sat, Nov 13, 2010 at 9:56 AM, Eric Mann <<a href="mailto:eric@eam.me">eric@eam.me</a>> wrote:<br>
> > Thanks for the catches. Those were both typos, and I've fixed both in the<br>
> > newest patch.<br>
> > wp_set_post_format() should have been wp_set_post_terms() ... Using the<br>
> > set_post_format() method from this patch as an<br>
> > example: <a href="http://core.trac.wordpress.org/attachment/ticket/14746/14746.6.diff" target="_blank">http://core.trac.wordpress.org/attachment/ticket/14746/14746.6.diff</a><br>
><br>
><br>
><br>
> --<br>
> Joseph Scott<br>
> <a href="mailto:joseph@josephscott.org">joseph@josephscott.org</a><br>
> <a href="http://josephscott.org/" target="_blank">http://josephscott.org/</a><br>
> _______________________________________________<br>
> wp-xmlrpc mailing list<br>
> <a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
> <a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
><br>
> _______________________________________________<br>
> wp-xmlrpc mailing list<br>
> <a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
> <a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
<br>
_______________________________________________<br>
wp-xmlrpc mailing list<br>
<a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
</div></div></blockquote></div><br></div>