[wp-trac] [WordPress Trac] #11387: Walker Widget System

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 18 23:25:34 UTC 2010


#11387: Walker Widget System
-------------------------+--------------------------------------------------
 Reporter:  ShaneF       |       Owner:  ShaneF                                                           
     Type:  enhancement  |      Status:  accepted                                                         
 Priority:  normal       |   Milestone:  3.1                                                              
Component:  Widgets      |     Version:                                                                   
 Severity:  normal       |    Keywords:  has-patch needs-testing reporter-feedback dev-feedback needs-docs
-------------------------+--------------------------------------------------

Comment(by scribu):

 Replying to [comment:13 ShaneF]:
 > ''Lets say the plugin author uses a CSS file for displaying their
 output, Combined that with a theme authors css, you could get some very
 messy look if it's a widget.''

 I don't see how it would look extra messy simply because it's a widget.
 [[BR]]
 [[BR]]

 > ''If a theme author was able to control how widgets are created and use
 the data that the widget author provides, the output could be presented in
 a correct way without having to hack the css.''

 It seems to me that the problem here is allowing theme authors to
 elegantly override the default CSS provided by a plugin, rather than the
 widget markup.
 [[BR]]
 [[BR]]

 > ''1) Plugin author provides a blueprint. By default (wordpress theme)
 has works correctly.''

 > ''2) Theme author can provide that class if they want to override the
 theme. Not only that, they can then get really gritty and do even more
 modification inside their class.''

 > ''3) WordPress users all they have to do is install widgets that they
 want.''

 If a theme author doesn't like the output of a particular widget, he can
 extend that widget's class and override the widget() method. There already
 are several themes that do this.
 [[BR]]
 [[BR]]

 I can't envision any common usecase that would require this system.
 Perhaps you can provide one.

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


More information about the wp-trac mailing list