Cast away the default styling of the recent comments widget in twentyten. fixes #12703

git-svn-id: https://develop.svn.wordpress.org/trunk@13977 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-04-03 23:33:52 +00:00
parent fcf7f399ef
commit b1aa2af855
1 changed files with 10 additions and 1 deletions

View File

@ -429,4 +429,13 @@ function twentyten_widgets_init() {
'after_title' => '</h3>',
) );
}
add_action( 'init', 'twentyten_widgets_init' );
add_action( 'init', 'twentyten_widgets_init' );
/**
* Removes the default styles that are packaged with the Recent Comments widget.
*/
function twentyten_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
}
add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' );