[wp-trac] [WordPress Trac] #11928: Recent Comments widget injects unconfigurable CSS (with !important)

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 18 07:51:33 UTC 2010

#11928: Recent Comments widget injects unconfigurable CSS (with !important)
 Reporter:  archon810    |       Owner:  azaozz         
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Unassigned     
Component:  Widgets      |     Version:  2.9.1          
 Severity:  normal       |    Keywords:  has-patch close
Changes (by nacin):

  * keywords:  has-patch => has-patch close
  * owner:  => azaozz
  * component:  General => Widgets
  * type:  defect (bug) => enhancement


 The CSS is so the widget can look as presentable as possible, by default,
 in any widget-ready theme.

 The declaration can be overridden quite easily via CSS, even with
 !important throughout.

 It is also possible to remove the styles via a plugin. Drop this code into
 functions.php as an example:
 add_action( 'widgets_init', 'my_remove_recent_comments_style' );
 function my_remove_recent_comments_style() {
         global $wp_widget_factory;
         remove_action( 'wp_head', array(
 'recent_comments_style'  ) );

 Marking this as an enhancement. Perhaps the CSS should be easier to remove
 or manipulate, but it's not a defect and it is configurable.

Ticket URL: <http://core.trac.wordpress.org/ticket/11928#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list