diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php
index c2c3067ec9..a002d9d591 100644
a
|
b
|
function the_widget( $widget, $instance = array(), $args = array() ) { |
1117 | 1117 | 'after_title' => '</h2>', |
1118 | 1118 | ); |
1119 | 1119 | $args = wp_parse_args( $args, $default_args ); |
| 1120 | |
| 1121 | //Allow modifying widget args via filter hook |
| 1122 | $args = apply_filters( 'the_widget_args', $args ); |
1120 | 1123 | $args['before_widget'] = sprintf( $args['before_widget'], $widget_obj->widget_options['classname'] ); |
1121 | 1124 | |
1122 | 1125 | $instance = wp_parse_args( $instance ); |