WordPress.org

Make WordPress Core

Ticket #7794: wp-includes--class-IXR.php.diff

File wp-includes--class-IXR.php.diff, 534 bytes (added by josephscott, 9 years ago)
  • wp-includes/class-IXR.php

     
    158158    }
    159159    function parse() {
    160160        // first remove the XML declaration
    161         $this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '', $this->message);
     161        $this->message = preg_replace('/<\?xml.*?\?'.'>/', '', $this->message);
    162162        if (trim($this->message) == '') {
    163163            return false;
    164164        }