Add param to the widget_display_callback hook, props Denis-de-Bernardy, fixes #9852

git-svn-id: https://develop.svn.wordpress.org/trunk@11374 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-05-17 19:36:28 +00:00
parent bf88f92c4d
commit 4bf2deac13
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class WP_Widget {
if ( array_key_exists( $this->number, $settings ) ) {
$settings = $settings[$this->number];
// filters the widget's settings, return false to stop displaying the widget
$settings = apply_filters('widget_display_callback', $settings, $this);
$settings = apply_filters('widget_display_callback', $settings, $this, $args);
if ( false !== $settings )
$this->widget($args, $settings);
}