diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index b07b8f8206..3eaf8e2e28 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -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; }