Changeset 16522
- Timestamp:
- 11/21/2010 01:55:11 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/functions.php
r16480 r16522 431 431 */ 432 432 function twentyten_remove_recent_comments_style() { 433 global $wp_widget_factory; 434 remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); 433 add_filter( 'show_recent_comments_widget_style', '__return_false' ); 435 434 } 436 435 add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); -
trunk/wp-includes/default-widgets.php
r16431 r16522 615 615 } 616 616 617 function recent_comments_style() { ?> 617 function recent_comments_style() { 618 if ( ! current_theme_supports( 'widgets' ) // Temp hack #14876 619 || ! apply_filters( 'show_recent_comments_widget_style', true, $this->id_base ) ) 620 return; 621 ?> 618 622 <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style> 619 623 <?php
Note: See TracChangeset
for help on using the changeset viewer.