refactor(widgets): remove shared redundant settings

This commit is contained in:
2026-08-16 15:03:49 +08:00
parent 30b08282f5
commit d97174dadb
31 changed files with 199 additions and 1321 deletions
+1 -4
View File
@@ -7,12 +7,10 @@
namespace AKSRT\Widgets;
use AKSRT\Widgets\Traits\CommonWidgetFields;
defined('ABSPATH') || exit;
class WidgetPostPayBox extends \WP_Widget {
use CommonWidgetFields;
public function __construct() {
parent::__construct(
@@ -173,7 +171,6 @@ class WidgetPostPayBox extends \WP_Widget {
</select>
</label>
</p>
<?php $this->render_common_form_section($instance); ?>
<?php
}
@@ -184,6 +181,6 @@ class WidgetPostPayBox extends \WP_Widget {
$theme = 'jb-red';
}
return $this->update_common_fields($new_instance, $old_instance, ['theme' => $theme]);
return ['theme' => $theme];
}
}