Changeset 3325345
- Timestamp:
- 07/10/2025 04:52:48 AM (8 months ago)
- Location:
- convertkit-membermouse
- Files:
-
- 2 added
- 10 edited
- 1 copied
-
tags/1.3.3 (copied) (copied from convertkit-membermouse/trunk)
-
tags/1.3.3/admin/class-convertkit-mm-admin.php (modified) (1 diff)
-
tags/1.3.3/convertkit-membermouse.php (modified) (3 diffs)
-
tags/1.3.3/includes/class-convertkit-mm-settings.php (modified) (3 diffs)
-
tags/1.3.3/includes/cron-functions.php (added)
-
tags/1.3.3/languages/convertkit-mm.pot (modified) (2 diffs)
-
tags/1.3.3/readme.txt (modified) (2 diffs)
-
trunk/admin/class-convertkit-mm-admin.php (modified) (1 diff)
-
trunk/convertkit-membermouse.php (modified) (3 diffs)
-
trunk/includes/class-convertkit-mm-settings.php (modified) (3 diffs)
-
trunk/includes/cron-functions.php (added)
-
trunk/languages/convertkit-mm.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
convertkit-membermouse/tags/1.3.3/admin/class-convertkit-mm-admin.php
r3261445 r3325345 138 138 'access_token' => $result['access_token'], 139 139 'refresh_token' => $result['refresh_token'], 140 'token_expires' => ( $result['created_at']+ $result['expires_in'] ),140 'token_expires' => ( time() + $result['expires_in'] ), 141 141 ) 142 142 ); -
convertkit-membermouse/tags/1.3.3/convertkit-membermouse.php
r3289503 r3325345 16 16 * Plugin URI: http://www.kit.com 17 17 * Description: This plugin integrates Kit with MemberMouse. 18 * Version: 1.3. 218 * Version: 1.3.3 19 19 * Author: Kit 20 20 * Author URI: https://kit.com … … 35 35 define( 'CONVERTKIT_MM_URL', plugin_dir_url( __FILE__ ) ); 36 36 define( 'CONVERTKIT_MM_PATH', plugin_dir_path( __FILE__ ) ); 37 define( 'CONVERTKIT_MM_VERSION', '1.3. 2' );37 define( 'CONVERTKIT_MM_VERSION', '1.3.3' ); 38 38 define( 'CONVERTKIT_MM_OAUTH_CLIENT_ID', 'U4aHnnj_QgRrZOdtWUJ6vtpulZSloLKn-7e551T-Exw' ); 39 39 define( 'CONVERTKIT_MM_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' ); … … 62 62 require CONVERTKIT_MM_PATH . 'includes/class-convertkit-mm.php'; 63 63 require CONVERTKIT_MM_PATH . 'includes/convertkit-mm-functions.php'; 64 require CONVERTKIT_MM_PATH . 'includes/cron-functions.php'; 64 65 require CONVERTKIT_MM_PATH . 'admin/class-convertkit-mm-admin.php'; 65 66 -
convertkit-membermouse/tags/1.3.3/includes/class-convertkit-mm-settings.php
r3198517 r3325345 51 51 52 52 // Update Access Token when refreshed by the API class. 53 add_action( 'convertkit_api_get_access_token', array( $this, 'update_credentials' ), 10, 2 ); 53 54 add_action( 'convertkit_api_refresh_token', array( $this, 'update_credentials' ), 10, 2 ); 54 55 … … 282 283 283 284 /** 284 * Saves the new access token, refresh token and its expiry when the API285 * 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. 286 287 * 287 288 * @since 1.3.0 … … 302 303 'access_token' => $result['access_token'], 303 304 'refresh_token' => $result['refresh_token'], 304 'token_expires' => ( $result['created_at']+ $result['expires_in'] ),305 'token_expires' => ( time() + $result['expires_in'] ), 305 306 ) 306 307 ); 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' ); 307 314 308 315 } -
convertkit-membermouse/tags/1.3.3/languages/convertkit-mm.pot
r3289503 r3325345 3 3 msgid "" 4 4 msgstr "" 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" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-membermouse\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 5-07T03:12:49+00:00\n"12 "POT-Creation-Date: 2025-07-10T03:47:46+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" -
convertkit-membermouse/tags/1.3.3/readme.txt
r3289503 r3325345 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.1 8 Stable tag: 1.3. 28 Stable tag: 1.3.3 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 40 40 41 41 == Changelog == 42 43 ### 1.3.3 2025-07-10 44 * Fix: Automatically refresh Access Token when expired 42 45 43 46 ### 1.3.2 2025-05-07 -
convertkit-membermouse/trunk/admin/class-convertkit-mm-admin.php
r3261445 r3325345 138 138 'access_token' => $result['access_token'], 139 139 'refresh_token' => $result['refresh_token'], 140 'token_expires' => ( $result['created_at']+ $result['expires_in'] ),140 'token_expires' => ( time() + $result['expires_in'] ), 141 141 ) 142 142 ); -
convertkit-membermouse/trunk/convertkit-membermouse.php
r3289503 r3325345 16 16 * Plugin URI: http://www.kit.com 17 17 * Description: This plugin integrates Kit with MemberMouse. 18 * Version: 1.3. 218 * Version: 1.3.3 19 19 * Author: Kit 20 20 * Author URI: https://kit.com … … 35 35 define( 'CONVERTKIT_MM_URL', plugin_dir_url( __FILE__ ) ); 36 36 define( 'CONVERTKIT_MM_PATH', plugin_dir_path( __FILE__ ) ); 37 define( 'CONVERTKIT_MM_VERSION', '1.3. 2' );37 define( 'CONVERTKIT_MM_VERSION', '1.3.3' ); 38 38 define( 'CONVERTKIT_MM_OAUTH_CLIENT_ID', 'U4aHnnj_QgRrZOdtWUJ6vtpulZSloLKn-7e551T-Exw' ); 39 39 define( 'CONVERTKIT_MM_OAUTH_CLIENT_REDIRECT_URI', 'https://app.kit.com/wordpress/redirect' ); … … 62 62 require CONVERTKIT_MM_PATH . 'includes/class-convertkit-mm.php'; 63 63 require CONVERTKIT_MM_PATH . 'includes/convertkit-mm-functions.php'; 64 require CONVERTKIT_MM_PATH . 'includes/cron-functions.php'; 64 65 require CONVERTKIT_MM_PATH . 'admin/class-convertkit-mm-admin.php'; 65 66 -
convertkit-membermouse/trunk/includes/class-convertkit-mm-settings.php
r3198517 r3325345 51 51 52 52 // Update Access Token when refreshed by the API class. 53 add_action( 'convertkit_api_get_access_token', array( $this, 'update_credentials' ), 10, 2 ); 53 54 add_action( 'convertkit_api_refresh_token', array( $this, 'update_credentials' ), 10, 2 ); 54 55 … … 282 283 283 284 /** 284 * Saves the new access token, refresh token and its expiry when the API285 * 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. 286 287 * 287 288 * @since 1.3.0 … … 302 303 'access_token' => $result['access_token'], 303 304 'refresh_token' => $result['refresh_token'], 304 'token_expires' => ( $result['created_at']+ $result['expires_in'] ),305 'token_expires' => ( time() + $result['expires_in'] ), 305 306 ) 306 307 ); 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' ); 307 314 308 315 } -
convertkit-membermouse/trunk/languages/convertkit-mm.pot
r3289503 r3325345 3 3 msgid "" 4 4 msgstr "" 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" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/convertkit-membermouse\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-0 5-07T03:12:49+00:00\n"12 "POT-Creation-Date: 2025-07-10T03:47:46+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" -
convertkit-membermouse/trunk/readme.txt
r3289503 r3325345 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.1 8 Stable tag: 1.3. 28 Stable tag: 1.3.3 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 40 40 41 41 == Changelog == 42 43 ### 1.3.3 2025-07-10 44 * Fix: Automatically refresh Access Token when expired 42 45 43 46 ### 1.3.2 2025-05-07
Note: See TracChangeset
for help on using the changeset viewer.