Skip to content

Commit

Permalink
[WordPress] Limit feed to 20 items (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
ORelio committed Oct 21, 2020
1 parent 364b528 commit 2714c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/WordPressBridge.php
Expand Up @@ -92,9 +92,9 @@ public function collectData(){
returnClientError('The url parameter must either refer to http or https protocol.');
}
try{
$this->collectExpandableDatas($this->getURI() . '/feed/atom/');
$this->collectExpandableDatas($this->getURI() . '/feed/atom/', 20);
} catch (Exception $e) {
$this->collectExpandableDatas($this->getURI() . '/?feed=atom');
$this->collectExpandableDatas($this->getURI() . '/?feed=atom', 20);
}

}
Expand Down

0 comments on commit 2714c3d

Please sign in to comment.