From 2714c3d816588192b7cec7b30bf53716543ac96d Mon Sep 17 00:00:00 2001 From: ORelio Date: Wed, 21 Oct 2020 11:59:04 +0200 Subject: [PATCH] [WordPress] Limit feed to 20 items (#1801) --- bridges/WordPressBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php index 1589c723..548e46e1 100644 --- a/bridges/WordPressBridge.php +++ b/bridges/WordPressBridge.php @@ -92,9 +92,9 @@ class WordPressBridge extends FeedExpander { 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); } }