[wp-trac] [WordPress Trac] #11891: Make Recent Comments dashboard module configurable

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 17 04:19:44 UTC 2010


#11891: Make Recent Comments dashboard module configurable
--------------------------+-------------------------------------------------
 Reporter:  janeforshort  |       Owner:  azaozz   
     Type:  enhancement   |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Widgets       |     Version:  2.9.1    
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by archon810):

 I think I'll piggyback this long overdue issue into this ticket while
 we're on the Recent Comments topic.

 The Recent Comments core code actually adds an inline non-configurable
 css:
 {{{
 <style type="text/css">.recentcomments a{display:inline !important;
 padding:0 !important;margin:0 !important;}</style>
 }}}

 This is done in default-widgets.php.

 I think it's really bad practice because
  - it's not configurable
  - it's not removable or overridable due to !important - when I tried to
 remove the filter, I found that it had a non-unique changing name
 WP_Widget_Recent_Commentsrecent_comments_style25

 Somebody even created a blog post about this issue
 [http://webstractions.com/wordpress/remove-recent-comments-inline-styl/
 here] but the solution didn't work for me due to, most likely, changes in
 later versions of WP.

 Specifically, in my case, I need to override the padding property.

 Thoughts?

 Thanks.

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


More information about the wp-trac mailing list