💥 TRENDING: Changeset/ - High Quality

Changeset 3329890


Ignore:
Timestamp:
07/17/2025 05:31:49 PM (6 months ago)
Author:
oakesjosh
Message:

Update to version 1.5.17 from GitHub

Location:
kadence-woocommerce-email-designer
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • kadence-woocommerce-email-designer/tags/1.5.17/includes/class-kadence-woomail-import-export.php

    r3245945 r3329890  
    107107
    108108        /**
     109         * Validates if an option key is allowed to be imported using the same logic as the export function
     110         * Only allows options containing 'kt_woomail' or those explicitly listed in $woo_core_options.
     111         *
     112         * @param string $option_key The option key to validate.
     113         * @return bool True if the option is allowed, false otherwise.
     114         */
     115        private static function is_allowed_option( $option_key ) {
     116            return ( stristr( $option_key, 'kt_woomail' ) || in_array( $option_key, self::$woo_core_options ) );
     117        }
     118
     119        /**
    109120         * Check to see if we need to do an export or import.
    110121         * @param object $wp_customize An instance of WP_Customize_Manager.
     
    236247            if ( isset( $data['options'] ) ) {
    237248                foreach ( $data['options'] as $option_key => $option_value ) {
     249                    if ( ! self::is_allowed_option( $option_key ) ) {
     250                        continue;
     251                    }
     252                   
    238253                    $option = new Kadence_Woomail_Import_Option( $wp_customize, $option_key, array(
    239254                        'default'       => '',
     
    323338               
    324339                foreach ( $data['options'] as $option_key => $option_value ) {
     340                    if ( ! self::is_allowed_option( $option_key ) ) {
     341                        continue;
     342                    }
    325343                   
    326344                    $option = new Kadence_Woomail_Import_Option( $wp_customize, $option_key, array(
  • kadence-woocommerce-email-designer/tags/1.5.17/kadence-woocommerce-email-designer.php

    r3266398 r3329890  
    44 * Plugin URI: http://kadencewp.com/products/woocommerce-email-designer/
    55 * Description: Customize the default woocommerce email templates design and text through the native WordPress customizer. Preview emails and send test emails.
    6  * Version: 1.5.16
     6 * Version: 1.5.17
    77 * Author: Kadence WP
    88 * Author URI: http://kadencewp.com/
     
    6060        define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
    6161        define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
    62         define( 'KT_WOOMAIL_VERSION', '1.5.16' );
     62        define( 'KT_WOOMAIL_VERSION', '1.5.17' );
    6363
    6464        if ( ! kadence_woomail_is_woo_active() ) {
  • kadence-woocommerce-email-designer/tags/1.5.17/readme.txt

    r3266398 r3329890  
    55Requires PHP: 5.2.4
    66Requires at least: 5.3
    7 Tested up to: 6.7.2
    8 Stable tag: 1.5.16
     7Tested up to: 6.8
     8Stable tag: 1.5.17
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9999
    100100== Changelog ==
     101
     102= 1.5.17 =
     103* Fix: Stricter validation when importing settings.
    101104
    102105= 1.5.16 =
  • kadence-woocommerce-email-designer/trunk/includes/class-kadence-woomail-import-export.php

    r3245945 r3329890  
    107107
    108108        /**
     109         * Validates if an option key is allowed to be imported using the same logic as the export function
     110         * Only allows options containing 'kt_woomail' or those explicitly listed in $woo_core_options.
     111         *
     112         * @param string $option_key The option key to validate.
     113         * @return bool True if the option is allowed, false otherwise.
     114         */
     115        private static function is_allowed_option( $option_key ) {
     116            return ( stristr( $option_key, 'kt_woomail' ) || in_array( $option_key, self::$woo_core_options ) );
     117        }
     118
     119        /**
    109120         * Check to see if we need to do an export or import.
    110121         * @param object $wp_customize An instance of WP_Customize_Manager.
     
    236247            if ( isset( $data['options'] ) ) {
    237248                foreach ( $data['options'] as $option_key => $option_value ) {
     249                    if ( ! self::is_allowed_option( $option_key ) ) {
     250                        continue;
     251                    }
     252                   
    238253                    $option = new Kadence_Woomail_Import_Option( $wp_customize, $option_key, array(
    239254                        'default'       => '',
     
    323338               
    324339                foreach ( $data['options'] as $option_key => $option_value ) {
     340                    if ( ! self::is_allowed_option( $option_key ) ) {
     341                        continue;
     342                    }
    325343                   
    326344                    $option = new Kadence_Woomail_Import_Option( $wp_customize, $option_key, array(
  • kadence-woocommerce-email-designer/trunk/kadence-woocommerce-email-designer.php

    r3266398 r3329890  
    44 * Plugin URI: http://kadencewp.com/products/woocommerce-email-designer/
    55 * Description: Customize the default woocommerce email templates design and text through the native WordPress customizer. Preview emails and send test emails.
    6  * Version: 1.5.16
     6 * Version: 1.5.17
    77 * Author: Kadence WP
    88 * Author URI: http://kadencewp.com/
     
    6060        define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
    6161        define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
    62         define( 'KT_WOOMAIL_VERSION', '1.5.16' );
     62        define( 'KT_WOOMAIL_VERSION', '1.5.17' );
    6363
    6464        if ( ! kadence_woomail_is_woo_active() ) {
  • kadence-woocommerce-email-designer/trunk/readme.txt

    r3266398 r3329890  
    55Requires PHP: 5.2.4
    66Requires at least: 5.3
    7 Tested up to: 6.7.2
    8 Stable tag: 1.5.16
     7Tested up to: 6.8
     8Stable tag: 1.5.17
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9999
    100100== Changelog ==
     101
     102= 1.5.17 =
     103* Fix: Stricter validation when importing settings.
    101104
    102105= 1.5.16 =
Note: See TracChangeset for help on using the changeset viewer.