Plugin Directory

Changeset 3327844


Ignore:
Timestamp:
07/15/2025 12:35:08 AM (9 months ago)
Author:
patreon
Message:

1.9.14 release

Location:
patreon-connect/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • patreon-connect/trunk/CHANGELOG.md

    r3324881 r3327844  
     1= 1.9.14 =
     2
     3* Fixed: Webhook deletion logic no longer gets stuck in a loop when the API
     4  returns a 404 - such responses are now treated as successful deletions
     5* Added: Query parameter to POST api/oauth2/token requests to indicate if the
     6  refresh is for a creator access token, for improved API-side debugging
     7
    18= 1.9.13 =
    29
  • patreon-connect/trunk/classes/patreon_oauth.php

    r3320377 r3327844  
    4747    {
    4848        $api_endpoint = 'https://'.PATREON_HOST.'/api/oauth2/token';
     49
     50        if ($disable_app_on_auth_err) {
     51            // Debugging high number of 401s to the token API. Try to indicate
     52            // whether the refresh event is for a creator token or not. Use the
     53            // $disable_app_on_auth_err is usually set to true when working with
     54            // creator access token.
     55            $api_endpoint = $api_endpoint.'?is_creator_access=true';
     56        } else {
     57            $api_endpoint = $api_endpoint.'?is_creator_access=false';
     58        }
    4959
    5060        $headers = PatreonApiUtil::get_default_headers();
  • patreon-connect/trunk/classes/patreon_wordpress.php

    r3324881 r3327844  
    30273027
    30283028                // If delete is successful remove the local info about webhook
    3029                 if (is_array($webhook_delete) and isset($webhook_delete['response']['code']) and '204' == $webhook_delete['response']['code']) {
     3029                if (is_array($webhook_delete) and isset($webhook_delete['response']['code']) and in_array($webhook_delete['response']['code'], ['204', '404'])) {
    30303030                    update_option('patreon-post-sync-webhook-saved', false);
    30313031                    delete_option('patreon-post-sync-webhook');
  • patreon-connect/trunk/patreon.php

    r3324881 r3327844  
    55Plugin URI: https://www.patreon.com/apps/wordpress
    66Description: Patron-only content, directly on your website.
    7 Version: 1.9.13
     7Version: 1.9.14
    88Author: Patreon <platform@patreon.com>
    99Author URI: https://patreon.com
     
    7070define('PATREON_NO_LOCKING_LEVEL_SET_FOR_THIS_POST', 'Post is already public. If you would like to lock this post, please set a pledge level for it');
    7171define('PATREON_NO_POST_ID_TO_UNLOCK_POST', 'Sorry - could not get the post id for this locked post');
    72 define('PATREON_WORDPRESS_VERSION', '1.9.13');
     72define('PATREON_WORDPRESS_VERSION', '1.9.14');
    7373define('PATREON_WORDPRESS_BETA_STRING', '');
    7474define('PATREON_WORDPRESS_PLUGIN_SLUG', plugin_basename(__FILE__));
  • patreon-connect/trunk/readme.txt

    r3324881 r3327844  
    55Requires PHP: 7.4
    66Tested up to: 6.8.1
    7 Stable tag: 1.9.13
     7Stable tag: 1.9.14
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979
    8080== Upgrade Notice ==
     81
     82= 1.9.14 =
     83
     84* Fixed: Webhook deletion logic no longer gets stuck in a loop when the API
     85  returns a 404 - such responses are now treated as successful deletions
     86* Added: Query parameter to POST api/oauth2/token requests to indicate if the
     87  refresh is for a creator access token, for improved API-side debugging
    8188
    8289= 1.9.13 =
     
    572579== Changelog ==
    573580
    574 = 1.9.13 =
    575 
    576 * Fixed: Success message no longer shows when the connection fails
    577 * Fixed: Stopped unnecessary creator token refreshes
    578 * Added: Automatic check to re-verify broken connections
    579 * Improved: Connection error message is now more informative
     581= 1.9.14 =
     582
     583* Fixed: Webhook deletion logic no longer gets stuck in a loop when the API
     584  returns a 404 - such responses are now treated as successful deletions
     585* Added: Query parameter to POST api/oauth2/token requests to indicate if the
     586  refresh is for a creator access token, for improved API-side debugging
Note: See TracChangeset for help on using the changeset viewer.