1 | <?php |
||
15 | define('WP_DEBUG', true); |
||
16 | |||
17 | class WP_Widget |
||
18 | { |
||
19 | public $id_base; |
||
20 | public $name; |
||
21 | public $number = false; |
||
22 | |||
23 | public function __construct($id_base, $name, $widget_options = [], $control_options = []) |
||
24 | { |
||
25 | $this->id_base = empty($id_base) ? preg_replace('/(wp_)?widget_/', '', strtolower(get_class($this))) : strtolower($id_base); |
||
26 | $this->name = $name; |
||
27 | $this->option_name = 'widget_' . $this->id_base; |
||
28 | } |
||
76 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.