Specifically, are the before_widget
, after_widget
, before_title
and before_title
array keys always set inside My_Widget::widget()
?
I'm wondering if statements such as the following are necessary (inside My_Widget::widget()
for example)?
$args['before_widget'] = ! empty( $args['before_widget'] ) ? $args['before_widget'] : '';
$args['after_widget'] = ! empty( $args['after_widget'] ) ? $args['after_widget'] : '';
Note: My My_Widget
class extends WP_Widget
in case you were wondering.