Plugin Directory

Changeset 3325345


Ignore:
Timestamp:
07/10/2025 04:52:48 AM (8 months ago)
Author:
convertkit
Message:

Update to version 1.3.3 from GitHub

Location:
convertkit-membermouse
Files:
2 added
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • convertkit-membermouse/tags/1.3.3/admin/class-convertkit-mm-admin.php

    r3261445 r3325345  
    138138                'access_token'  => $result['access_token'],
    139139                'refresh_token' => $result['refresh_token'],
    140                 'token_expires' => ( $result['created_at'] + $result['expires_in'] ),
     140                'token_expires' => ( time() + $result['expires_in'] ),
    141141            )
    142142        );
  • convertkit-membermouse/tags/1.3.3/convertkit-membermouse.php

    r3289503 r3325345  
    1616 * Plugin URI:        http://www.kit.com
    1717 * Description:       This plugin integrates Kit with MemberMouse.
    18  * Version:           1.3.2
     18 * Version:           1.3.3
    1919 * Author:            Kit
    2020 * Author URI:        https://kit.com
     
    3535define( 'CONVERTKIT_MM_URL', plugin_dir_url( __FILE__ ) );
    3636define( 'CONVERTKIT_MM_PATH', plugin_dir_path( __FILE__ ) );
    37 define( 'CONVERTKIT_MM_VERSION', '1.3.2' );
     37define( 'CONVERTKIT_MM_VERSION', '1.3.3' );
    3838define( 'CONVERTKIT_MM_OAUTH_CLIENT_ID', 'U4aHnnj_QgRrZOdtWUJ6vtpulZSloLKn-7e551T-Exw' );
    3939define( 'CONVERTKIT_MM_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
     
    6262require CONVERTKIT_MM_PATH . 'includes/class-convertkit-mm.php';
    6363require CONVERTKIT_MM_PATH . 'includes/convertkit-mm-functions.php';
     64require CONVERTKIT_MM_PATH . 'includes/cron-functions.php';
    6465require CONVERTKIT_MM_PATH . 'admin/class-convertkit-mm-admin.php';
    6566
  • convertkit-membermouse/tags/1.3.3/includes/class-convertkit-mm-settings.php

    r3198517 r3325345  
    5151
    5252        // Update Access Token when refreshed by the API class.
     53        add_action( 'convertkit_api_get_access_token', array( $this, 'update_credentials' ), 10, 2 );
    5354        add_action( 'convertkit_api_refresh_token', array( $this, 'update_credentials' ), 10, 2 );
    5455
     
    282283
    283284    /**
    284      * Saves the new access token, refresh token and its expiry when the API
    285      * class automatically refreshes an outdated access token.
     285     * Saves the new access token, refresh token and its expiry, and schedules
     286     * a WordPress Cron event to refresh the token on expiry.
    286287     *
    287288     * @since   1.3.0
     
    302303                'access_token'  => $result['access_token'],
    303304                'refresh_token' => $result['refresh_token'],
    304                 'token_expires' => ( $result['created_at'] + $result['expires_in'] ),
     305                'token_expires' => ( time() + $result['expires_in'] ),
    305306            )
    306307        );
     308
     309        // Clear any existing scheduled WordPress Cron event.
     310        wp_clear_scheduled_hook( 'convertkit_mm_refresh_token' );
     311
     312        // Schedule a WordPress Cron event to refresh the token on expiry.
     313        wp_schedule_single_event( ( time() + $result['expires_in'] ), 'convertkit_mm_refresh_token' );
    307314
    308315    }
  • convertkit-membermouse/tags/1.3.3/languages/convertkit-mm.pot

    r3289503 r3325345  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Kit (formerly ConvertKit) for MemberMouse 1.3.2\n"
     5"Project-Id-Version: Kit (formerly ConvertKit) for MemberMouse 1.3.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-membermouse\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-05-07T03:12:49+00:00\n"
     12"POT-Creation-Date: 2025-07-10T03:47:46+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
  • convertkit-membermouse/tags/1.3.3/readme.txt

    r3289503 r3325345  
    66Tested up to: 6.8
    77Requires PHP: 7.1
    8 Stable tag: 1.3.2
     8Stable tag: 1.3.3
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    4040
    4141== Changelog ==
     42
     43### 1.3.3 2025-07-10
     44* Fix: Automatically refresh Access Token when expired
    4245
    4346### 1.3.2 2025-05-07
  • convertkit-membermouse/trunk/admin/class-convertkit-mm-admin.php

    r3261445 r3325345  
    138138                'access_token'  => $result['access_token'],
    139139                'refresh_token' => $result['refresh_token'],
    140                 'token_expires' => ( $result['created_at'] + $result['expires_in'] ),
     140                'token_expires' => ( time() + $result['expires_in'] ),
    141141            )
    142142        );
  • convertkit-membermouse/trunk/convertkit-membermouse.php

    r3289503 r3325345  
    1616 * Plugin URI:        http://www.kit.com
    1717 * Description:       This plugin integrates Kit with MemberMouse.
    18  * Version:           1.3.2
     18 * Version:           1.3.3
    1919 * Author:            Kit
    2020 * Author URI:        https://kit.com
     
    3535define( 'CONVERTKIT_MM_URL', plugin_dir_url( __FILE__ ) );
    3636define( 'CONVERTKIT_MM_PATH', plugin_dir_path( __FILE__ ) );
    37 define( 'CONVERTKIT_MM_VERSION', '1.3.2' );
     37define( 'CONVERTKIT_MM_VERSION', '1.3.3' );
    3838define( 'CONVERTKIT_MM_OAUTH_CLIENT_ID', 'U4aHnnj_QgRrZOdtWUJ6vtpulZSloLKn-7e551T-Exw' );
    3939define( 'CONVERTKIT_MM_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' );
     
    6262require CONVERTKIT_MM_PATH . 'includes/class-convertkit-mm.php';
    6363require CONVERTKIT_MM_PATH . 'includes/convertkit-mm-functions.php';
     64require CONVERTKIT_MM_PATH . 'includes/cron-functions.php';
    6465require CONVERTKIT_MM_PATH . 'admin/class-convertkit-mm-admin.php';
    6566
  • convertkit-membermouse/trunk/includes/class-convertkit-mm-settings.php

    r3198517 r3325345  
    5151
    5252        // Update Access Token when refreshed by the API class.
     53        add_action( 'convertkit_api_get_access_token', array( $this, 'update_credentials' ), 10, 2 );
    5354        add_action( 'convertkit_api_refresh_token', array( $this, 'update_credentials' ), 10, 2 );
    5455
     
    282283
    283284    /**
    284      * Saves the new access token, refresh token and its expiry when the API
    285      * class automatically refreshes an outdated access token.
     285     * Saves the new access token, refresh token and its expiry, and schedules
     286     * a WordPress Cron event to refresh the token on expiry.
    286287     *
    287288     * @since   1.3.0
     
    302303                'access_token'  => $result['access_token'],
    303304                'refresh_token' => $result['refresh_token'],
    304                 'token_expires' => ( $result['created_at'] + $result['expires_in'] ),
     305                'token_expires' => ( time() + $result['expires_in'] ),
    305306            )
    306307        );
     308
     309        // Clear any existing scheduled WordPress Cron event.
     310        wp_clear_scheduled_hook( 'convertkit_mm_refresh_token' );
     311
     312        // Schedule a WordPress Cron event to refresh the token on expiry.
     313        wp_schedule_single_event( ( time() + $result['expires_in'] ), 'convertkit_mm_refresh_token' );
    307314
    308315    }
  • convertkit-membermouse/trunk/languages/convertkit-mm.pot

    r3289503 r3325345  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Kit (formerly ConvertKit) for MemberMouse 1.3.2\n"
     5"Project-Id-Version: Kit (formerly ConvertKit) for MemberMouse 1.3.3\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-membermouse\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-05-07T03:12:49+00:00\n"
     12"POT-Creation-Date: 2025-07-10T03:47:46+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
  • convertkit-membermouse/trunk/readme.txt

    r3289503 r3325345  
    66Tested up to: 6.8
    77Requires PHP: 7.1
    8 Stable tag: 1.3.2
     8Stable tag: 1.3.3
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    4040
    4141== Changelog ==
     42
     43### 1.3.3 2025-07-10
     44* Fix: Automatically refresh Access Token when expired
    4245
    4346### 1.3.2 2025-05-07
Note: See TracChangeset for help on using the changeset viewer.