From e6099860263a9bc90fdd890b6b3993489f836ed4 Mon Sep 17 00:00:00 2001 From: Joost de Valk Date: Thu, 5 Feb 2026 12:24:41 +0100 Subject: [PATCH] fix: remove unused Hacks::get_defaults() call in Forms::init get_defaults() is a pure function that returns an array but the return value was discarded. The call had no side effects and did nothing. Co-Authored-By: Claude Opus 4.5 --- inc/forms.php | 1 - 1 file changed, 1 deletion(-) diff --git a/inc/forms.php b/inc/forms.php index fccb8a0..079db12 100644 --- a/inc/forms.php +++ b/inc/forms.php @@ -30,7 +30,6 @@ public function __construct() { */ public function init() { $this->options = Hacks::get_options(); - Hacks::get_defaults(); if ( $this->options['comment_policy'] ) { \add_action( 'comment_form_after_fields', [ $this, 'comment_form_fields' ] );