Ticket #14524: wordpress-importer.patch
File wordpress-importer.patch, 732 bytes (added by , 14 years ago) |
---|
-
Sites/plugins/wordpress-importer/trunk/wordpress-importer.php
736 736 $this->url_remap[$url] = $upload['url']; 737 737 $this->url_remap[$post['guid']] = $upload['url']; 738 738 // 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 ) 740 740 $this->url_remap[$headers['x-final-location']] = $upload['url']; 741 741 742 742 return $upload;