From 43ac961284fb836319316b55eaea035cbb0eed60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Thu, 15 Sep 2016 12:36:24 +0200 Subject: [PATCH] [WordPressBridge] add another case of content extraction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/WordPressBridge.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php index cc3478c..87ff650 100644 --- a/bridges/WordPressBridge.php +++ b/bridges/WordPressBridge.php @@ -36,6 +36,11 @@ class WordPressBridge extends FeedExpander { // another common content div $article = $article_html->find('.single-content', 0); break; + case !is_null($article_html->find('.post-content',0)): + // another common content div + $article = $article_html->find('.post-content', 0); + break; + case !is_null($article_html->find('.post',0)): // for old WordPress themes without HTML5 $article = $article_html->find('.post', 0);