Plugin Directory

Changeset 2575553


Ignore:
Timestamp:
07/30/2021 10:43:46 PM (5 years ago)
Author:
winrid
Message:

3.8 - Improvements to upgrading from 2.1

Location:
fastcomments
Files:
34 added
4 edited

Legend:

Unmodified
Added
Removed
  • fastcomments/trunk/README.txt

    r2575549 r2575553  
    44Requires at least: 4.6
    55Tested up to: 5.8
    6 Stable tag: 3.7
     6Stable tag: 3.8
    77Requires PHP: 5.2.4
    88License: GPLv2 or later
     
    8585== Changelog ==
    8686
     87= 3.8 =
     88* Improvements for when upgrading from 2.1.
     89
    8790= 3.7 =
    8891* Improvements for when upgrading from 2.1.
  • fastcomments/trunk/core/FastCommentsIntegrationCore.php

    r2575532 r2575553  
    123123        $tenantId = $this->getSettingValue('fastcomments_tenant_id');
    124124        $token = $this->getSettingValue('fastcomments_token');
    125         if ($tenantId && $token) {
     125        $isTokenValidated = $this->getSettingValue('fastcomments_token_validated');
     126        if ($tenantId && $token && $isTokenValidated) {
    126127            return 'integrationStatePollNext';
    127128        } else {
     
    142143            if ($tokenUpsertResponse->status === 'success' && $tokenUpsertResponse->isTokenValidated === true) {
    143144                $this->setSettingValue('fastcomments_tenant_id', $tokenUpsertResponse->tenantId);
     145                $this->setSettingValue('fastcomments_token_validated', true);
    144146            }
    145147            return null;
  • fastcomments/trunk/core/FastCommentsWordPressIntegration.php

    r2575549 r2575553  
    4141            // force setup, but allow comment widget to load
    4242            delete_option('fastcomments_setup');
     43            delete_option('fastcomments_token_validated');
    4344        }
    4445
  • fastcomments/trunk/fastcomments-wordpress-plugin.php

    r2575549 r2575553  
    44Plugin URI: https://fastcomments.com
    55Description: Live Comments, Fast. A comment system that will delight your users and developers.
    6 Version: 3.7
     6Version: 3.8
    77Author: winrid @ FastComments
    88License: GPL-2.0+
     
    1414}
    1515
    16 $FASTCOMMENTS_VERSION = 3.7;
     16$FASTCOMMENTS_VERSION = 3.8;
    1717
    1818
Note: See TracChangeset for help on using the changeset viewer.