WordPress.org

Make WordPress Core

Changeset 13977


Ignore:
Timestamp:
04/03/2010 11:33:52 PM (9 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r13936 r13977  
    431431}
    432432add_action( 'init', 'twentyten_widgets_init' );
     433
     434/**
     435 * Removes the default styles that are packaged with the Recent Comments widget.
     436 */
     437function twentyten_remove_recent_comments_style() {
     438    global $wp_widget_factory;
     439    remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
     440}
     441add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' );
Note: See TracChangeset for help on using the changeset viewer.