Changeset 14382
- Timestamp:
- 05/03/2010 07:01:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r14320 r14382 559 559 560 560 add_theme_support('widgets'); 561 561 562 do_action( 'register_sidebar', $sidebar ); 563 562 564 return $sidebar['id']; 563 565 } … … 630 632 $widget = array_merge($widget, $options); 631 633 632 if ( is_callable($output_callback) && ( !isset($wp_registered_widgets[$id]) || did_action( 'widgets_init' ) ) ) 634 if ( is_callable($output_callback) && ( !isset($wp_registered_widgets[$id]) || did_action( 'widgets_init' ) ) ) { 635 do_action( 'wp_register_sidebar_widget', $widget ); 633 636 $wp_registered_widgets[$id] = $widget; 637 } 634 638 } 635 639 … … 686 690 */ 687 691 function wp_unregister_sidebar_widget($id) { 692 do_action( 'wp_unregister_sidebar_widget', $id ); 693 688 694 wp_register_sidebar_widget($id, '', ''); 689 695 wp_unregister_widget_control($id); … … 879 885 880 886 $callback = $wp_registered_widgets[$id]['callback']; 887 888 do_action( 'dynamic_sidebar', $wp_registered_widgets[$id] ); 881 889 882 890 if ( is_callable($callback) ) { … … 1194 1202 $instance = wp_parse_args($instance); 1195 1203 1204 do_action( 'the_widget', $widget, $instance, $args ); 1205 1196 1206 $widget_obj->_set(-1); 1197 1207 $widget_obj->widget($args, $instance);
Note: See TracChangeset
for help on using the changeset viewer.