Plugin Directory

Changeset 3379151


Ignore:
Timestamp:
10/15/2025 10:14:32 PM (5 months ago)
Author:
uncannyowl
Message:

LinkedIn fix

Location:
uncanny-automator/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uncanny-automator/trunk/languages/uncanny-automator.pot

    r3373959 r3379151  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Uncanny Automator 6.9.0.1\n"
     5"Project-Id-Version: Uncanny Automator 6.9.0.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/uncanny-automator\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-10-06T18:55:02+00:00\n"
     12"POT-Creation-Date: 2025-10-15T22:06:14+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    2623526235msgstr ""
    2623626236
    26237 #: src/integrations/linkedin/helpers/linkedin-helpers.php:538
     26237#: src/integrations/linkedin/helpers/linkedin-helpers.php:552
    2623826238msgctxt "Linkedin"
    2623926239msgid "Your LinkedIn access and refresh tokens have expired."
    2624026240msgstr ""
    2624126241
    26242 #: src/integrations/linkedin/helpers/linkedin-helpers.php:544
     26242#: src/integrations/linkedin/helpers/linkedin-helpers.php:558
    2624326243msgctxt "Linkedin"
    2624426244msgid "Click here"
    2624526245msgstr ""
    2624626246
    26247 #: src/integrations/linkedin/helpers/linkedin-helpers.php:545
     26247#: src/integrations/linkedin/helpers/linkedin-helpers.php:559
    2624826248msgctxt "Linkedin"
    2624926249msgid "to reauthorize Uncanny Automator and continue using LinkedIn actions in your recipes."
     
    2625126251
    2625226252#. Translators: Admin notice
    26253 #: src/integrations/linkedin/helpers/linkedin-helpers.php:557
     26253#: src/integrations/linkedin/helpers/linkedin-helpers.php:571
    2625426254#, php-format
    2625526255msgid "Your LinkedIn access and refresh tokens will expire in %s day."
     
    2625826258msgstr[1] ""
    2625926259
    26260 #: src/integrations/linkedin/helpers/linkedin-helpers.php:567
     26260#: src/integrations/linkedin/helpers/linkedin-helpers.php:581
    2626126261msgctxt "Linkedin"
    2626226262msgid "Click here to reauthorize"
    2626326263msgstr ""
    2626426264
    26265 #: src/integrations/linkedin/helpers/linkedin-helpers.php:568
     26265#: src/integrations/linkedin/helpers/linkedin-helpers.php:582
    2626626266msgctxt "Linkedin"
    2626726267msgid "to continue using your LinkedIn account in your recipes."
  • uncanny-automator/trunk/readme.txt

    r3373959 r3379151  
    55Tested up to: 6.8.3
    66Requires PHP: 7.3
    7 Stable tag: 6.9.0.1
     7Stable tag: 6.9.0.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    406406== Changelog ==
    407407
     408= 6.9.0.2 [2025-10-15] =
     409
     410**Fixed:**
     411
     412* LinkedIn - Some users were seeing LinkedIn as not connected even after a successful connection was established
     413
    408414= 6.9.0.1 [2025-10-06] =
    409415
  • uncanny-automator/trunk/src/integrations/linkedin/helpers/linkedin-helpers.php

    r3290616 r3379151  
    110110        $tokens['refresh_token_expires_on'] = strtotime( current_time( 'mysql' ) ) + $tokens['refresh_token_expires_in'];
    111111
     112        // Delete any credentials from the database on reconnect to avoid conflicts.
     113        $this->remove_credentials();
     114
    112115        automator_update_option( self::LINKEDIN_CLIENT, $tokens, false );
    113116
     
    127130     */
    128131    public function get_client() {
    129 
    130         return automator_get_option( self::LINKEDIN_CLIENT );
     132        $default = false;
     133        $force   = true;
     134        return automator_get_option( self::LINKEDIN_CLIENT, $default, $force );
    131135    }
    132136
     
    329333
    330334    /**
     335     * Remove credentials.
     336     *
     337     * @return void
     338     */
     339    public function remove_credentials() {
     340
     341        automator_delete_option( self::LINKEDIN_CLIENT );
     342        automator_delete_option( self::LINKEDIN_CONNECTED_USER );
     343
     344        delete_transient( 'automator_linkedin_pages' );
     345
     346    }
     347
     348    /**
    331349     * @return void
    332350     */
     
    335353        $this->verify_access( automator_filter_input( 'nonce' ) );
    336354
    337         automator_delete_option( self::LINKEDIN_CLIENT );
    338 
    339         automator_delete_option( self::LINKEDIN_CONNECTED_USER );
    340 
    341         delete_transient( 'automator_linkedin_pages' );
     355        $this->remove_credentials();
    342356
    343357        $this->redirect(
  • uncanny-automator/trunk/uncanny-automator.php

    r3373959 r3379151  
    1010 * License:             GPLv3
    1111 * License URI:         https://www.gnu.org/licenses/gpl-3.0.html
    12  * Version:             6.9.0.1
     12 * Version:             6.9.0.2
    1313 * Requires at least:   5.6
    1414 * Requires PHP:        7.3
     
    2323     * Specify Automator version.
    2424     */
    25     define( 'AUTOMATOR_PLUGIN_VERSION', '6.9.0.1' );
     25    define( 'AUTOMATOR_PLUGIN_VERSION', '6.9.0.2' );
    2626}
    2727
Note: See TracChangeset for help on using the changeset viewer.