1 farhad2na2 Dec 20, 2008 20:55
3 esanchez Feb 11, 2009 03:40
I just started seeing this problem. This is too bad and it is really annoying. I guess we'll have to wait until PHP releases a fix?
4 yabba Feb 11, 2009 11:05
For kicks, crack open /xmlrpc/xmlrpc.php and change this bit :
// Trim requests (used by XML-RPC library); fix for mozBlog and other cases where '<?xml' isn't on the very first line
$HTTP_RAW_POST_DATA = str_replace( '&', '[amp]', trim( $HTTP_RAW_POST_DATA ) );
Then crack open /inc/xmlrpc/model/_xmlrpcs.funcs.php and change this bit :
/**
* Create a new Item and return an XML-RPC response
*
* @param string HTML
* @param string HTML
* @param string date
* @param integer main category
* @param array of integers : extra categories
* @param string status
* @return xmlrpcmsg
*/
function xmlrpcs_new_item( $post_title, $content, $post_date, $main_cat, $cat_IDs, $status )
{
$post_title = str_replace( '[amp]', '&', $post_title );
$content = str_replace( '[amp]', '&', $content );
Then make a new post and see if stuff works.
¥
http://josephscott.org/archives/2008/12/problems-with-libxml2-for-wordpress-xml-rpc-users/
http://bugs.php.net/bug.php?id=45996