Skip to content

Commit

Permalink
fix: upgrade notice when user is close to visits limit
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Nov 5, 2019
1 parent 7a4082a commit ff716f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function add_notice_upgrade() {
}
?>
<div class="notice notice-warning optml-notice-optin">
<p> <?php printf( __( 'It seems your are close to the %1$s1GB%2$s limit of images optimized with %3$sOptiMole%4$s for this month. You might want to check the upgrade plans for a larger quota. %5$s %6$s What happens if i exceed the quota ?%7$s We will need to deliver back your %8$sun-optimized%9$s images which might decrease your site speed perfomance.', 'optimole-wp' ), '<strong>', '</strong>', '<strong>', '</strong>', '<br/><br/>', '<i>', '</i >', '<strong>', '</strong>' ); ?></p>
<p> <?php printf( __( 'It seems your are close to the %1$s5.0000%2$s visits limit with %3$sOptiMole%4$s for this month. You might want to check the upgrade plans for a larger quota. %5$s %6$s What happens if i exceed the quota ?%7$s We will need to deliver back your original %8$sun-optimized%9$s images which might decrease your site speed perfomance.', 'optimole-wp' ), '<strong>', '</strong>', '<strong>', '</strong>', '<br/><br/>', '<i>', '</i >', '<strong>', '</strong>' ); ?></p>
<p>
<a href="https://optimole.com/#pricing" target="_blank" class="button button-primary"><span
class="dashicons dashicons-external"></span><?php _e( 'Check upgrade plans', 'optimole-wp' ); ?>
Expand Down Expand Up @@ -265,7 +265,7 @@ public function should_show_upgrade() {
return false;
}
$visitors = isset( $service_data['visitors_limit'] ) ? (int) $service_data['visitors_limit'] : 0;
if ( $service_data['usage'] < 800 && $visitors === 0 ) {
if ( $visitors < 3000 ) {
return false;
}

Expand Down

0 comments on commit ff716f7

Please sign in to comment.