mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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] ) )
|
||||
|
||||
Reference in New Issue
Block a user