Fix - wc_notice_count logic cont...
This commit is contained in:
parent
a94ef8dcdc
commit
4e3317bbe6
|
@ -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 ) ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue