[WordPress] Limit feed to 20 items (#1801)
This commit is contained in:
parent
364b5282a3
commit
2714c3d816
1 changed files with 2 additions and 2 deletions
|
@ -92,9 +92,9 @@ class WordPressBridge extends FeedExpander {
|
||||||
returnClientError('The url parameter must either refer to http or https protocol.');
|
returnClientError('The url parameter must either refer to http or https protocol.');
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
$this->collectExpandableDatas($this->getURI() . '/feed/atom/');
|
$this->collectExpandableDatas($this->getURI() . '/feed/atom/', 20);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->collectExpandableDatas($this->getURI() . '/?feed=atom');
|
$this->collectExpandableDatas($this->getURI() . '/?feed=atom', 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue