WordPress.org

Plugin Directory

Changeset 628492


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

Tumblr Importer: Add better markup to posts of type "quote," adding a blockquote tag around the quote itself and a div with class "attribution" around the source so that it can be styled.

See #22422

File:
1 edited

Legend:

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

    r628490 r628492  
    810810                case 'quote': 
    811811                    $post['format'] = 'quote'; 
    812                     $post['post_content'] = (string) $tpost->text; 
    813                     $post['post_content'] .= "\n\n" . (string) $tpost->source; 
     812                    $post['post_content'] = '<blockquote>' . (string) $tpost->text . '</blockquote>'; 
     813                    $post['post_content'] .= "\n\n<div class='attribution'>" . (string) $tpost->source . '</div>'; 
    814814                    break; 
    815815                case 'link': 
Note: See TracChangeset for help on using the changeset viewer.