Plugin Directory

Changeset 2746763


Ignore:
Timestamp:
06/23/2022 03:30:01 AM (4 years ago)
Author:
winrid
Message:

3.12.1 - Improved EU support

Location:
fastcomments
Files:
40 added
4 edited

Legend:

Unmodified
Added
Removed
  • fastcomments/trunk/README.txt

    r2744374 r2746763  
    44Requires at least: 4.6
    55Tested up to: 6.0
    6 Stable tag: 3.12.0
     6Stable tag: 3.12.1
    77Requires PHP: 5.2.5
    88License: GPLv2 or later
     
    8888== Changelog ==
    8989
     90= 3.12.1 =
     91* Improved support for keeping your data in the EU.
     92
    9093= 3.12.0 =
    9194* Support for keeping your data in the EU.
  • fastcomments/trunk/admin/fastcomments-admin-setup-view.php

    r2744374 r2746763  
    44    <p>We'll go through a couple steps before FastComments is activated.</p>
    55
    6     <?php if (!get_option('fastcomments_site') || get_option('fastcomments_site') === 'https://fastcomments.com') { ?>
    7         <h2>Where should we put your data?</h2>
    8         <p>Continue without changing anything and we will store your data replicated in all data centers.</p>
     6    <?php if (get_option('fastcomments_site') === 'https://eu.fastcomments.com') { ?>
     7        <h2>1. Where should we put your data?</h2>
     8        <p>✔️ We will keep your data in the EU.</p>
     9
     10        <p>
     11            <a class="button-primary button-not-in-eu"
     12               href="?page=fastcomments&isEU=false">I'm not in the EU.</a>
     13        </p>
     14    <?php } else { ?>
     15        <h2>1. Where should we put your data?</h2>
     16        <p>Continue without changing anything and we will store your data replicated globally in all data centers.</p>
    917
    1018        Do you want to only keep your users' data in the EU?
    11         <a class="button-primary button-in-eu"
    12            href="?isEU=true"
    13            target="_blank">I'm in the EU.</a>
    14     <?php } else { ?>
    15         <h2>Where should we put your data?</h2>
    16         <p>✔ We will keep your data in the EU.</p>
     19        <p>
     20            <a class="button-primary button-in-eu"
     21               href="?page=fastcomments&isEU=true">I'm in the EU.</a>
     22        </p>
    1723
    18         <a class="button-primary button-not-in-eu"
    19            href="?isEU=false"
    20            target="_blank">I'm not in the EU.</a>
     24        If you're not in the EU, you can continue to Step 2.
    2125    <?php } ?>
    2226
    2327    <?php if (!get_option('fastcomments_tenant_id')) { ?>
     28        <h2>2. Connect and Sync</h2>
    2429        <ol>
    2530            <li><input type="checkbox" readonly="readonly" disabled>️ Connect WordPress with FastComments</li>
  • fastcomments/trunk/admin/fastcomments-admin.php

    r2744374 r2746763  
    162162        }
    163163    } else {
     164        if (isset($_GET['isEU'])) {
     165            if ($_GET['isEU'] === 'true') {
     166                update_option('fastcomments_site', 'https://eu.fastcomments.com');
     167                update_option('fastcomments_cdn', 'https://cdn-eu.fastcomments.com');
     168            } else {
     169                update_option('fastcomments_site', 'https://fastcomments.com');
     170                update_option('fastcomments_cdn', 'https://cdn.fastcomments.com');
     171            }
     172        }
    164173        require_once plugin_dir_path(__FILE__) . 'fastcomments-admin-setup-view.php';
    165174    }
  • fastcomments/trunk/fastcomments-wordpress-plugin.php

    r2744374 r2746763  
    44Plugin URI: https://fastcomments.com
    55Description: Live Comments, Fast. A comment system that will delight your users and developers.
    6 Version: 3.12.0
     6Version: 3.12.1
    77Author: winrid @ FastComments
    88License: GPL-2.0+
     
    1414}
    1515
    16 $FASTCOMMENTS_VERSION = 3.120;
     16$FASTCOMMENTS_VERSION = 3.121;
    1717
    1818require_once plugin_dir_path(__FILE__) . 'admin/fastcomments-admin.php';
Note: See TracChangeset for help on using the changeset viewer.