Make WordPress Core


Ignore:
Timestamp:
11/21/2010 01:55:11 PM (14 years ago)
Author:
nacin
Message:

Add a simple filter to allow removing the recent comments default widget styles. fixes #15493, see #14876.

File:
1 edited

Legend:

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

    r16480 r16522  
    431431 */
    432432function 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' );
    435434}
    436435add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' );
Note: See TracChangeset for help on using the changeset viewer.