Skip to content

Commit bc2d18d

Browse files
committed
Fix Account widget
1 parent 4f804be commit bc2d18d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Generic_WidgetAccount_View.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<td><b><?php esc_html_e( 'License:', 'w3-total-cache' ); ?></b></td>
2222
<td>
2323
<?php
24-
echo ! empty( $license ) && in_array( $license->license_status, array( 'active.by_rooturi', 'active.by_ip' ), true )
24+
echo ! empty( $license ) && 'active.by_rooturi' === $license->license_status
2525
? esc_html__( 'Pro', 'w3-total-cache' )
2626
: esc_html__( 'Free', 'w3-total-cache' );
2727
?>
@@ -34,7 +34,6 @@
3434
if ( ! empty( $license ) ) {
3535
switch ( $license ) {
3636
case 'active.by_rooturi' === $license->license_status:
37-
case 'active.by_ip' === $license->license_status:
3837
esc_html_e( 'Active', 'w3-total-cache' );
3938
break;
4039
case 'inactive.expired' === $license->license_status:

0 commit comments

Comments
 (0)