Make WordPress Core

Ticket #14524: wordpress-importer.patch

File wordpress-importer.patch, 732 bytes (added by briancolinger, 14 years ago)
  • Sites/plugins/wordpress-importer/trunk/wordpress-importer.php

     
    736736                $this->url_remap[$url] = $upload['url'];
    737737                $this->url_remap[$post['guid']] = $upload['url'];
    738738                // if the remote url is redirected somewhere else, keep track of the destination too
    739                 if ( $headers['x-final-location'] != $url )
     739                if ( isset( $headers['x-final-location'] ) && $headers['x-final-location'] != $url )
    740740                        $this->url_remap[$headers['x-final-location']] = $upload['url'];
    741741
    742742                return $upload;