Bug #60797
Description (post content) is empty when image is found
Start date:
2014-08-05
Due date:
% Done:
0%
Description
Hi,
i'm using ws_wordpressgrab 0.6.4.
I noticed when grabbing posts that have an image embedded, the rest of the post content is empty.
After a little inspection of the source code, i found that a change in "Parser.php"
(/html/typo3/typo3conf/ext/ws_wordpressgrab/Classes/Domain/Model/Parser.php)
resolves that.
I moved the line
$t3Post->setContent($wpPost['post_content']);
to just above of this part:
//Get images
$html = $domHtml->str_get_html($wpPost['post_content']);
// Find all images
$i = 0;
[...]
I suspect that the extraction of the image somehow empties the contents of $wpPost['post_content'].
Maybe there is a better way than my quick fix!
Kind regards,
Sebastian