WordPress.org

Plugin Directory

Changeset 623061


Ignore:
Timestamp:
11/09/12 16:38:03 (18 months ago)
Author:
dllh
Message:

Posterous Importer: Use the new local image url rather than the origina Posterous url when remapping for images scaled to 1000. Oops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • posterous-importer/branches/v2api/posterous.php

    r622959 r623061  
    559559            foreach ( $attachment->thumbs as $thumb ) { 
    560560                if ( isset( $sized[0] ) ) { 
    561                     $this->url_remap[ $thumb ] = preg_match( '/scaled\.?500\./', $thumb ) ? $sized[0] : $attachment->url; 
     561                    $this->url_remap[ $thumb ] = preg_match( '/scaled\.?500\./', $thumb ) ? $sized[0] : $attachment_url; 
    562562                } 
    563563            } 
     
    619619            foreach ( $attachment->thumbs as $thumb ) { 
    620620                if ( isset( $sized[0] ) ) { 
    621                     $this->url_remap[ $thumb ] = preg_match( '/scaled\.?500\./', $thumb ) ? $sized[0] : $attachment->url; 
     621                    $this->url_remap[ $thumb ] = preg_match( '/scaled\.?500\./', $thumb ) ? $sized[0] : $attachment_url; 
    622622                } 
    623623            } 
Note: See TracChangeset for help on using the changeset viewer.