mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Add param to the widget_display_callback hook, props Denis-de-Bernardy, fixes #9852
git-svn-id: http://svn.automattic.com/wordpress/trunk@11374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0d5c54333
commit
4dfedcc8ff
@ -173,7 +173,7 @@ class WP_Widget {
|
|||||||
if ( array_key_exists( $this->number, $settings ) ) {
|
if ( array_key_exists( $this->number, $settings ) ) {
|
||||||
$settings = $settings[$this->number];
|
$settings = $settings[$this->number];
|
||||||
// filters the widget's settings, return false to stop displaying the widget
|
// 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 )
|
if ( false !== $settings )
|
||||||
$this->widget($args, $settings);
|
$this->widget($args, $settings);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user