WordPress.org

Make WordPress Core

Ticket #17838: update-count-filter.patch

File update-count-filter.patch, 592 bytes (added by usermrpapa, 7 years ago)
  • wp-admin/menu.php

     
    5151                        $wordpress_update_count = 1;
    5252        }
    5353
    54         $total_update_count = $plugin_update_count + $theme_update_count + $wordpress_update_count;
     54        $total_update_count = apply_filters('update_count', $plugin_update_count + $theme_update_count + $wordpress_update_count);
    5555        $update_title = array();
    5656        if ( $wordpress_update_count )
    5757                $update_title[] = sprintf(__('%d WordPress Update'), $wordpress_update_count);