mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-10 17:08:47 +00:00
Merge pull request #53 from aledeg/wordpress
[WordpressBridge] Fix posts discovery for PHP 5.5-
This commit is contained in:
commit
3c363da883
@ -25,7 +25,8 @@ class WordpressBridge extends BridgeAbstract {
|
||||
|
||||
$html = file_get_html($this->url) or $this->returnError("Could not request {$this->url}.", 404);
|
||||
|
||||
if(!empty($html->find('.post')) ) {
|
||||
$posts = $html->find('.post');
|
||||
if(!empty($posts) ) {
|
||||
$i=0;
|
||||
foreach ($html->find('.post') as $article) {
|
||||
if($i < 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user