Plugin Directory

Changeset 3402455


Ignore:
Timestamp:
11/25/2025 11:31:34 AM (4 months ago)
Author:
fromdoppler
Message:

update plugin version 1.5.1

Location:
doppler-for-woocommerce
Files:
91 added
4 edited

Legend:

Unmodified
Added
Removed
  • doppler-for-woocommerce/trunk/README.txt

    r3331424 r3402455  
    44Tags: email marketing woocommerce
    55Requires at least: 4.9
    6 Tested up to: 6.8.1
     6Tested up to: 6.8
    77Stable tag: 1.5.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010WC requires at least: 3.3.2
    11 WC tested up: 8.7.0
     11WC tested up: 9.9
    1212
    1313Submit your WooCommerce customers and buyers to a Doppler List.
    1414
    1515== Changelog ==
     16
     17= 1.5.1 =
     18* Update: Elevate the WooCommerce API token to read/write permissions.
    1619
    1720= 1.5.0 =
  • doppler-for-woocommerce/trunk/admin/class-doppler-for-woocommerce-admin.php

    r3301447 r3402455  
    13251325            update_option('dplrwoo_version', DOPPLER_FOR_WOOCOMMERCE_VERSION);
    13261326        }
     1327
     1328        // Update API Key permissions if they are 'read' to 'read_write'
     1329        $key_row = $wpdb->get_row(
     1330            $wpdb->prepare(
     1331                "SELECT key_id, permissions FROM {$wpdb->prefix}woocommerce_api_keys WHERE description = %s",
     1332                'Doppler App integration'
     1333            )
     1334        );
     1335
     1336        if ($key_row && 'read' === $key_row->permissions) {
     1337            $wpdb->update(
     1338                "{$wpdb->prefix}woocommerce_api_keys",
     1339                array( 'permissions' => 'read_write' ),
     1340                array( 'key_id' => $key_row->key_id )
     1341            );
     1342        }
    13271343    }
    13281344
  • doppler-for-woocommerce/trunk/doppler-for-woocommerce.php

    r3331424 r3402455  
    1717 * Plugin URI:        https://www.fromdoppler.com/
    1818 * Description:       Connect your WooCommerce customers with your Doppler Lists.
    19  * Version:           1.5.0
     19 * Version:           1.5.1
    2020 * Author:            Doppler LLC
    2121 * License:           GPL-2.0+
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define('DOPPLER_FOR_WOOCOMMERCE_VERSION', '1.5.0');
     37define('DOPPLER_FOR_WOOCOMMERCE_VERSION', '1.5.1');
    3838define('DOPPLER_FOR_WOOCOMMERCE_URL', plugin_dir_url(__FILE__));
    3939define('DOPPLER_FOR_WOOCOMMERCE_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
  • doppler-for-woocommerce/trunk/includes/class-doppler-for-woocommerce-app-connect.php

    r3261479 r3402455  
    183183            $key_id = 0;
    184184            $description = sanitize_text_field(wp_unslash($this->get_api_keys_description()));
    185             $permissions = 'read';
     185            $permissions = 'read_write';
    186186            $user_id     = get_current_user_id();
    187187            // Check if current user can edit other users.
     
    250250
    251251}
    252 
Note: See TracChangeset for help on using the changeset viewer.