Make WordPress Core

Ticket #9852: widget_display_callback.diff

File widget_display_callback.diff, 646 bytes (added by Denis-de-Bernardy, 17 years ago)
  • wp-includes/widgets.php

     
    173173                if ( array_key_exists( $this->number, $settings ) ) {
    174174            $settings = $settings[$this->number];
    175175                        // filters the widget's settings, return false to stop displaying the widget
    176                         $settings = apply_filters('widget_display_callback', $settings, $this);   
     176                        $settings = apply_filters('widget_display_callback', $settings, $this, $args);
    177177            if ( false !== $settings )
    178178                                $this->widget($args, $settings);
    179179        }