Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #33 from audrasjb/fix/remove-empty-filters-in-plug…
Browse files Browse the repository at this point in the history
…ins-screen

Plugins screen: Display only filters with at least one plugin
  • Loading branch information
audrasjb authored Mar 5, 2020
2 parents a83efc3 + 7e80b31 commit bd0e2ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-autoupdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ function wp_autoupdates_plugins_status_links( $status_links ) {
$status = isset( $_REQUEST['plugin_status'] ) ? $_REQUEST['plugin_status'] : 'all';

foreach ( $counts as $type => $count ) {
if ( 0 === $count ) {
continue;
}
switch( $type ) {
case 'autoupdate_enabled':
/* translators: %s: Number of plugins. */
Expand Down

0 comments on commit bd0e2ba

Please sign in to comment.