WordPress.org

Make WordPress Core

Ticket #10020: 10020.diff

File 10020.diff, 783 bytes (added by Denis-de-Bernardy, 5 years ago)
  • wp-includes/widgets.php

     
    273273 
    274274        /** Helper function: Registers a single instance. */ 
    275275        function _register_one($number = -1) { 
     276                do_action_ref_array('register_widget', array(&$this)); 
    276277                wp_register_sidebar_widget(     $this->id, $this->name, $this->_get_display_callback(), $this->widget_options, array( 'number' => $number ) ); 
    277278                _register_widget_update_callback( $this->id_base, $this->_get_update_callback(), $this->control_options, array( 'number' => -1 ) ); 
    278279                _register_widget_form_callback( $this->id, $this->name, $this->_get_form_callback(), $this->control_options, array( 'number' => $number ) );