WordPress.org

Plugin Directory

Changeset 626348


Ignore:
Timestamp:
11/17/12 02:50:38 (17 months ago)
Author:
dllh
Message:

Tumblr Importer: Update the correct $post attribute with the description for link posts. Also tweak the markup a little.

File:
1 edited

Legend:

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

    r626344 r626348  
    818818                    $linkurl = (string) $tpost->url; 
    819819                    $linktext = (string) $tpost->title; 
    820                     $post['post_content'] = ''; 
     820                    $post['post_content'] = "<a href='$linkurl'>$linktext</a>"; 
    821821                    if ( ! empty( $tpost->description ) ) 
    822                         $post['content'] .= $tpost->description . "<br />"; 
    823                     $post['post_content'] .= "<a href='$linkurl'>$linktext</a>"; 
     822                        $post['post_content'] .= '<div class="link_description">' . (string) $tpost->description . '</div>'; 
    824823                    $post['post_title'] = (string) $tpost->title; 
    825824                    break; 
Note: See TracChangeset for help on using the changeset viewer.