Fix widget count on dashboard to account for orphaned widgets. see #19553 for trunk.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-01-03 17:53:31 +00:00
parent 33f5a73a63
commit b66ca19aec
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ function wp_dashboard_right_now() {
$sidebars_widgets = wp_get_sidebars_widgets();
$num_widgets = 0;
foreach ( (array) $sidebars_widgets as $k => $v ) {
if ( 'wp_inactive_widgets' == $k )
if ( 'wp_inactive_widgets' == $k || 'orphaned_widgets' == substr( $k, 0, 16 ) )
continue;
if ( is_array($v) )
$num_widgets = $num_widgets + count($v);