Skip to content

Commit da87ee4

Browse files
authored
Merge pull request #175 from Codeinwp/development
Release
2 parents 7116131 + e535c91 commit da87ee4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

inc/admin.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,14 @@ public function should_show_upgrade() {
264264
if ( $service_data['plan'] !== 'free' ) {
265265
return false;
266266
}
267-
$visitors = isset( $service_data['visitors_limit'] ) ? (int) $service_data['visitors_limit'] : 0;
268-
if ( $visitors < 3000 ) {
267+
$visitors_limit = isset( $service_data['visitors_limit'] ) ? (int) $service_data['visitors_limit'] : 0;
268+
$visitors_left = isset( $service_data['visitors_left'] ) ? (int) $service_data['visitors_left'] : 0;
269+
if ( $visitors_limit === 0 ) {
270+
return false;
271+
}
272+
if ( $visitors_left > 2000 ) {
269273
return false;
270274
}
271-
272275
return true;
273276
}
274277

0 commit comments

Comments
 (0)