WordPress.org

Plugin Directory

Changeset 628493


Ignore:
Timestamp:
11/22/12 04:18:07 (17 months ago)
Author:
dllh
Message:

Tumblr Importer: Use the correct data from the API to set the caption for imported photos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tumblr-importer/branches/newapi/tumblr-importer.php

    r628492 r628493  
    795795                    $post['media']['width'] = (string) $tpost->photos[0]->original_size->width; 
    796796                    $post['media']['height'] = (string) $tpost->photos[0]->original_size->height; 
    797                     $post['post_content'] = (string) $tpost->photos[0]->caption; 
     797                    $post['post_content'] = (string) $tpost->caption; 
    798798                    if ( ! empty( $tpost->photos ) ) { 
    799799                        $post['format'] = 'gallery'; 
Note: See TracChangeset for help on using the changeset viewer.