refactor(widgets): remove shared redundant settings
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user