From af92c579141af138dada41401c1ec8abf9b68d87 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 8 Dec 2023 11:13:16 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Swap=20the=20method=20order?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/View/Composers/Comments.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/View/Composers/Comments.php b/app/View/Composers/Comments.php index 9d29599506..8a82f0f5dc 100644 --- a/app/View/Composers/Comments.php +++ b/app/View/Composers/Comments.php @@ -25,8 +25,8 @@ public function with() return [ 'title' => $this->title(), 'comments' => $this->comments(), - 'next' => $this->next(), 'previous' => $this->previous(), + 'next' => $this->next(), 'paginated' => $this->paginated(), 'closed' => $this->closed(), ]; @@ -65,34 +65,34 @@ public function comments() } /** - * The next comments link. + * The previous comments link. * * @return string */ - public function next() + public function previous() { - if (! get_next_comments_link()) { + if (! get_previous_comments_link()) { return; } - return get_next_comments_link( - __('Newer comments →', 'sage') + return get_previous_comments_link( + __('← Older comments', 'sage') ); } /** - * The previous comments link. + * The next comments link. * * @return string */ - public function previous() + public function next() { - if (! get_previous_comments_link()) { + if (! get_next_comments_link()) { return; } - return get_previous_comments_link( - __('← Older comments', 'sage') + return get_next_comments_link( + __('Newer comments →', 'sage') ); }