Make WordPress Core


Ignore:
Timestamp:
01/03/2012 05:53:31 PM (15 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r19630 r19653  
    396396                $num_widgets = 0;
    397397                foreach ( (array) $sidebars_widgets as $k => $v ) {
    398                         if ( 'wp_inactive_widgets' == $k )
     398                        if ( 'wp_inactive_widgets' == $k || 'orphaned_widgets' == substr( $k, 0, 16 ) )
    399399                                continue;
    400400                        if ( is_array($v) )
Note: See TracChangeset for help on using the changeset viewer.