Ticket #9701: 9701.2.diff
File 9701.2.diff, 911 bytes (added by , 16 years ago) |
---|
-
wp-includes/widgets.php
1209 1209 if ( !is_a($widget_obj, 'WP_Widget') ) 1210 1210 return; 1211 1211 1212 $before_widget = sprintf('<div class="widget %s">', $widget_obj->widget_options['classname']); 1213 $default_args = array('before_widget' => $before_widget, 'after_widget' => "</div>", 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>'); 1212 $default_args = array('before_widget' => '<div class="widget %s">', 'after_widget' => "</div>", 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>'); 1214 1213 1215 1214 $args = wp_parse_args($args, $default_args); 1215 $args['before_widget'] = sprintf($args['before_widget'], $widget_obj->widget_options['classname']); 1216 1216 $instance = wp_parse_args($instance); 1217 1217 1218 1218 $widget_obj->_set(-1);