From 4bf2deac130900d6162f34ee5b738aef3f1fe8d2 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sun, 17 May 2009 19:36:28 +0000 Subject: [PATCH] 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 --- wp-includes/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 5f7f33c924..a308573594 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -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); }