WordPress.org

Make WordPress Core

Ticket #25160: 25160.patch

File 25160.patch, 639 bytes (added by jdgrimes, 5 years ago)
  • src/wp-includes/widgets.php

     
    270270                        $return = $this->form($instance);
    271271                        // add extra fields in the widget form - be sure to set $return to null if you add any
    272272                        // if the widget has no form the text echoed from the default form method can be hidden using css
    273                         do_action_ref_array( 'in_widget_form', array(&$this, &$return, $instance) );
     273                        do_action_ref_array( 'in_widget_form', array($this, &$return, $instance) );
    274274                }
    275275                return $return;
    276276        }