From 686baae7cc5513de2859f22948046706f6facf45 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 3 Apr 2010 23:33:52 +0000 Subject: [PATCH] Cast away the default styling of the recent comments widget in twentyten. fixes #12703 git-svn-id: http://svn.automattic.com/wordpress/trunk@13977 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/functions.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 9b0cd072dc..5545f48187 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -429,4 +429,13 @@ function twentyten_widgets_init() { 'after_title' => '', ) ); } -add_action( 'init', 'twentyten_widgets_init' ); \ No newline at end of file +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' );