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
This commit is contained in:
parent
7289a8df23
commit
686baae7cc
|
@ -430,3 +430,12 @@ function 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' );
|
||||
|
|
Loading…
Reference in New Issue