From 7e98d2b7f837c4b79e670c730ace566b23787422 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 10 Feb 2009 15:22:08 +0000 Subject: [PATCH] Documentation correction: is_active_widget(), props mdawaffe, fixes #9080 git-svn-id: https://develop.svn.wordpress.org/trunk@10535 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 2d65401833..4e7e1db0a8 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -486,9 +486,8 @@ function dynamic_sidebar($index = 1) { /** * Whether widget is registered using callback with widget ID. * - * Will only check if both parameters are used. Used to find which sidebar the - * widget is located in, but requires that both the callback and the widget ID - * be known. + * Without the optional $widget_id parameter, returns the ID of the first sidebar in which the first instance of the widget with the given callback is found. + * With the $widget_id parameter, returns the ID of the sidebar in which the widget with that callback AND that ID is found. * * @since 2.2.0 *