WordPress.org

Make WordPress Core

Ticket #19553: 19553.diff

File 19553.diff, 565 bytes (added by nacin, 6 years ago)
  • wp-admin/includes/dashboard.php

     
    395395                $sidebars_widgets = wp_get_sidebars_widgets();
    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) )
    401401                                $num_widgets = $num_widgets + count($v);