[wp-trac] [WordPress Trac] #9704: Make the Name of the Widget optional

WordPress Trac wp-trac at lists.automattic.com
Sat May 2 16:53:53 GMT 2009


#9704: Make the Name of the Widget optional
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:  2.8      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 Per default a Widget should have the name of it's own class. That helps
 prototyping new Widgets because there is no need to over-ride the default
 Widgets Class constructor.

 This established Documentation conform behavior as well because it is
 written:

 {{{
  * This class must be extended for each widget and WP_Widget::widget(),
 WP_Widget::update()
  * and WP_Widget::form() need to be over-ridden.
 }}}

 Without the patch the constructor function needs to be over-ridden as
 well. With the patch, the comment above is true then.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9704>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list