From 35583cfcce77301497e818d681972e0cd875c62c Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Sat, 31 Jan 2026 12:02:02 -0800 Subject: [PATCH] [3.0] Remove default Poll choices Pulled out of #7933, this does not need to be in the theme PR --- Sources/Poll.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/Poll.php b/Sources/Poll.php index 7907c77bc3..3aa24e7778 100644 --- a/Sources/Poll.php +++ b/Sources/Poll.php @@ -1059,15 +1059,11 @@ protected function initNewPoll(): void 'guest_vote' => !empty($_POST['poll_guest_vote']), ]); - // Make all five poll choices empty. - Utils::$context['last_choice_id'] = 4; - - for ($i = 0; $i <= Utils::$context['last_choice_id']; $i++) { + for ($i = 0; $i <= 4; $i++) { $this->addChoice([ 'id' => $i, 'number' => $i + 1, 'label' => '', - 'is_last' => $i === Utils::$context['last_choice_id'], ], true); } }