From 578f25ebdcd27d64c1b77bc8e66eb36f8fe6a723 Mon Sep 17 00:00:00 2001 From: Konstantin Kovshenin Date: Mon, 28 Aug 2017 10:32:51 +0300 Subject: [PATCH] Helper: Don't display (0) in top navigation when no updates available. --- includes/admin/helper/views/html-section-nav.php | 4 ++++ includes/admin/views/html-admin-page-addons.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/includes/admin/helper/views/html-section-nav.php b/includes/admin/helper/views/html-section-nav.php index 8c47e309882..6b785a1384c 100644 --- a/includes/admin/helper/views/html-section-nav.php +++ b/includes/admin/helper/views/html-section-nav.php @@ -6,6 +6,10 @@ (%d)', $count, number_format_i18n( $count ) ); + if ( ! $count ) { + $count_html = ''; + } + $menu_title = sprintf( __( 'WooCommerce.com Subscriptions %s', 'woocommerce' ), $count_html ); ?> diff --git a/includes/admin/views/html-admin-page-addons.php b/includes/admin/views/html-admin-page-addons.php index 99607ec26a8..73828cf5176 100644 --- a/includes/admin/views/html-admin-page-addons.php +++ b/includes/admin/views/html-admin-page-addons.php @@ -17,6 +17,10 @@ if ( ! defined( 'ABSPATH' ) ) { (%d)', $count, number_format_i18n( $count ) ); + if ( ! $count ) { + $count_html = ''; + } + $menu_title = sprintf( __( 'WooCommerce.com Subscriptions %s', 'woocommerce' ), $count_html ); ?>