[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:39:38 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):

 A quick fix is to change this:

 {{{
 register_sidebar_widget($name, $i <= $number ? 'widget_execphp' : /*
 unregister */ '', $i);
 }}}

 to this:

 {{{
 register_sidebar_widget($name, $i <= $number ? 'widget_execphp' : /*
 unregister */ '', '', $i);
 }}}

 in the plugin.  Notice the extra empty argument before $i.

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


More information about the wp-trac mailing list