Fix - wc_notice_count logic cont...

This commit is contained in:
Shiva Poudel 2018-01-11 10:32:41 +05:45
parent a94ef8dcdc
commit 4e3317bbe6
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function wc_notice_count( $notice_type = '' ) {
if ( isset( $all_notices[ $notice_type ] ) ) { if ( isset( $all_notices[ $notice_type ] ) ) {
$notice_count = absint( sizeof( $all_notices[ $notice_type ] ) ); $notice_count = count( $all_notices[ $notice_type ] );
} elseif ( empty( $notice_type ) ) { } elseif ( empty( $notice_type ) ) {