Make is_active_widget() optionally look in 'wp_inactive_widgets' for use in the admin

git-svn-id: https://develop.svn.wordpress.org/trunk@11164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-05-03 23:20:26 +00:00
parent c549ff4e42
commit a2bbfe9f26
3 changed files with 7 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ function wp_list_widgets() {
if ( in_array( $widget['callback'], $done, true ) ) // We already showed this multi-widget
continue;
$sidebar = is_active_widget( $widget['callback'], $widget['id'] );
$sidebar = is_active_widget( $widget['callback'], $widget['id'], false, false );
$done[] = $widget['callback'];
if ( ! isset( $widget['params'][0] ) )