WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/21/2010 01:55:11 PM (10 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-includes/default-widgets.php

    r16431 r16522  
    615615    }
    616616
    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        ?>
    618622    <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
    619623<?php
Note: See TracChangeset for help on using the changeset viewer.