/**<br> * IXR - The Inutio XML-RPC Library<br> *<br> * @package IXR<br> * @since 1.5<br> *<br> * @copyright Incutio Ltd 2002-2005<br> * @version 1.7 (beta) 23rd May 2005<br> * @author Simon Willison<br> * @link <a href="http://scripts.incutio.com/xmlrpc/">http://scripts.incutio.com/xmlrpc/</a> Site<br>
* @link <a href="http://scripts.incutio.com/xmlrpc/manual.php">http://scripts.incutio.com/xmlrpc/manual.php</a> Manual<br> * @license BSD License <a href="http://www.opensource.org/licenses/bsd-license.php">http://www.opensource.org/licenses/bsd-license.php</a><br>
*/<br><br>/**<br> * IXR_Value<br> *<br> * @package IXR<br> * @since 1.5<br> */<br><br>This is the <br><br><br><div class="gmail_quote">On Fri, Apr 17, 2009 at 5:35 PM, Joseph Scott <span dir="ltr"><<a href="mailto:joseph@josephscott.org">joseph@josephscott.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5"><br>
On Apr 17, 2009, at 9:54 AM, David Weiss wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks to everyone's help here, I am "THIS" close (holding my index finger and thumb a 1/4 inch apart) to having a really slick solution for getting my project working.<br>
<br>
One more problem.<br>
<br>
Let's say I have a URL I'm sticking into a custom field and using getPost or editPost to create/update that custom field.<br>
<br>
The XML that gets passed looks just fine:<br>
<br>
<value><struct><br>
<member><name>id</name><value><string>3038</string></value></member><br>
<member><name>key</name><value><string>_photo_1_large</string></value></member><member><name>value</name><value><string>/wordpress/images/image.php/07160864_1.jpg?width=600&height=400&image=/wordpress/images/07160864_1.jpg</string></value></member><br>
</struct></value><br>
<br>
But once it's inside of WP, the "&" gets stripped off the "&".<br>
<br>
How do I fix this? I've tried adding an extra "&" and all sorts of other permutations of possibilities.<br>
</blockquote>
<br>
<br>
<br></div></div>
I've been trying to reproduce this with no luck so far. What version are you using? I've been testing against -trunk so it's possible that something has changed that addressed this.<br>
<br>
I used the IXR library and my custom field looked like:<br>
<br>
array(<br>
"key" => "photo",<br>
"value" => "/wordpress/images/image.php/07160864_1.jpg?width=600&height=400&image=/wordpress/images/07160864_1.jpg"<br>
)<br>
<br>
I checked the DB, the edit post screen and the results of metaWeblog.getPost, they all returned the same string with the & intact.<br>
<br>
--<br>
Joseph Scott<br>
<a href="mailto:joseph@josephscott.org" target="_blank">joseph@josephscott.org</a><br>
<a href="http://josephscott.org/" target="_blank">http://josephscott.org/</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
wp-xmlrpc mailing list<br>
<a href="mailto:wp-xmlrpc@lists.automattic.com" target="_blank">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>
</blockquote></div><br>