Make WordPress Core


Ignore:
Timestamp:
01/03/2012 06:31:52 PM (12 years ago)
Author:
ryan
Message:

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

Location:
branches/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3

  • branches/3.3/wp-admin/includes/dashboard.php

    r19545 r19660  
    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.