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 authored Oct 21, 2020

Verified

This commit was signed with the committer’s verified signature.
isra17 Israël Hallé
1 parent 364b528 commit 2714c3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/WordPressBridge.php
Original file line number Diff line number Diff line change
@@ -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);
}

}

0 comments on commit 2714c3d

Please sign in to comment.