Fix parse error.not well formed on XMLRPC request, props josephscott, fixes #7794
git-svn-id: http://svn.automattic.com/wordpress/trunk@10318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8d72414561
commit
33a8201a89
|
@ -158,7 +158,7 @@ class IXR_Message {
|
|||
}
|
||||
function parse() {
|
||||
// first remove the XML declaration
|
||||
$this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '', $this->message);
|
||||
$this->message = preg_replace('/<\?xml.*?\?'.'>/', '', $this->message);
|
||||
if (trim($this->message) == '') {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue