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:
parent
33f5a73a63
commit
b66ca19aec
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue