[wp-trac] Re: [WordPress Trac] #4275: PHP Exec Widgets repeat in WP 2.2 widget implementation

WordPress Trac wp-trac at lists.automattic.com
Wed May 16 17:25:49 GMT 2007


#4275: PHP Exec Widgets repeat in WP 2.2 widget implementation
---------------------------------+------------------------------------------
 Reporter:  technosailor         |        Owner:  anonymous
     Type:  defect               |       Status:  new      
 Priority:  high                 |    Milestone:  2.2.1    
Component:  Administration       |      Version:           
 Severity:  normal               |   Resolution:           
 Keywords:  widgets needs-patch  |  
---------------------------------+------------------------------------------
Comment (by ryan):

 Oh, wow, the plugin version of widgets had a strange "feature" where
 classname was included as part of the params to pass to the widget due to
 slicing func_get_args at 2 instead of 3.  This allowed widgets to specify
 things such as $number in the classname argument.  Hard to blame them for
 doing this since the default text widget did the same thing.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4275#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list