Changeset 11310
- Timestamp:
- 05/12/2009 07:17:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r11308 r11310 322 322 323 323 function register($widget_class) { 324 $this->widgets[$widget_class] = new $widget_class();324 $this->widgets[$widget_class] = & new $widget_class(); 325 325 } 326 326 … … 331 331 332 332 function _register_widgets() { 333 foreach ( $this->widgets as $widget ) 334 $widget->_register(); 333 $keys = array_keys($this->widgets); 334 foreach ( $keys as $key ) 335 $this->widgets[$key]->_register(); 335 336 } 336 337 }
Note: See TracChangeset
for help on using the changeset viewer.