Changeset 3329890
- Timestamp:
- 07/17/2025 05:31:49 PM (6 months ago)
- Location:
- kadence-woocommerce-email-designer
- Files:
-
- 6 edited
- 1 copied
-
tags/1.5.17 (copied) (copied from kadence-woocommerce-email-designer/trunk)
-
tags/1.5.17/includes/class-kadence-woomail-import-export.php (modified) (3 diffs)
-
tags/1.5.17/kadence-woocommerce-email-designer.php (modified) (2 diffs)
-
tags/1.5.17/readme.txt (modified) (2 diffs)
-
trunk/includes/class-kadence-woomail-import-export.php (modified) (3 diffs)
-
trunk/kadence-woocommerce-email-designer.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kadence-woocommerce-email-designer/tags/1.5.17/includes/class-kadence-woomail-import-export.php
r3245945 r3329890 107 107 108 108 /** 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 /** 109 120 * Check to see if we need to do an export or import. 110 121 * @param object $wp_customize An instance of WP_Customize_Manager. … … 236 247 if ( isset( $data['options'] ) ) { 237 248 foreach ( $data['options'] as $option_key => $option_value ) { 249 if ( ! self::is_allowed_option( $option_key ) ) { 250 continue; 251 } 252 238 253 $option = new Kadence_Woomail_Import_Option( $wp_customize, $option_key, array( 239 254 'default' => '', … … 323 338 324 339 foreach ( $data['options'] as $option_key => $option_value ) { 340 if ( ! self::is_allowed_option( $option_key ) ) { 341 continue; 342 } 325 343 326 344 $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 4 4 * Plugin URI: http://kadencewp.com/products/woocommerce-email-designer/ 5 5 * 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.1 66 * Version: 1.5.17 7 7 * Author: Kadence WP 8 8 * Author URI: http://kadencewp.com/ … … 60 60 define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR ); 61 61 define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) ); 62 define( 'KT_WOOMAIL_VERSION', '1.5.1 6' );62 define( 'KT_WOOMAIL_VERSION', '1.5.17' ); 63 63 64 64 if ( ! kadence_woomail_is_woo_active() ) { -
kadence-woocommerce-email-designer/tags/1.5.17/readme.txt
r3266398 r3329890 5 5 Requires PHP: 5.2.4 6 6 Requires at least: 5.3 7 Tested up to: 6. 7.28 Stable tag: 1.5.1 67 Tested up to: 6.8 8 Stable tag: 1.5.17 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 99 99 100 100 == Changelog == 101 102 = 1.5.17 = 103 * Fix: Stricter validation when importing settings. 101 104 102 105 = 1.5.16 = -
kadence-woocommerce-email-designer/trunk/includes/class-kadence-woomail-import-export.php
r3245945 r3329890 107 107 108 108 /** 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 /** 109 120 * Check to see if we need to do an export or import. 110 121 * @param object $wp_customize An instance of WP_Customize_Manager. … … 236 247 if ( isset( $data['options'] ) ) { 237 248 foreach ( $data['options'] as $option_key => $option_value ) { 249 if ( ! self::is_allowed_option( $option_key ) ) { 250 continue; 251 } 252 238 253 $option = new Kadence_Woomail_Import_Option( $wp_customize, $option_key, array( 239 254 'default' => '', … … 323 338 324 339 foreach ( $data['options'] as $option_key => $option_value ) { 340 if ( ! self::is_allowed_option( $option_key ) ) { 341 continue; 342 } 325 343 326 344 $option = new Kadence_Woomail_Import_Option( $wp_customize, $option_key, array( -
kadence-woocommerce-email-designer/trunk/kadence-woocommerce-email-designer.php
r3266398 r3329890 4 4 * Plugin URI: http://kadencewp.com/products/woocommerce-email-designer/ 5 5 * 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.1 66 * Version: 1.5.17 7 7 * Author: Kadence WP 8 8 * Author URI: http://kadencewp.com/ … … 60 60 define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR ); 61 61 define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) ); 62 define( 'KT_WOOMAIL_VERSION', '1.5.1 6' );62 define( 'KT_WOOMAIL_VERSION', '1.5.17' ); 63 63 64 64 if ( ! kadence_woomail_is_woo_active() ) { -
kadence-woocommerce-email-designer/trunk/readme.txt
r3266398 r3329890 5 5 Requires PHP: 5.2.4 6 6 Requires at least: 5.3 7 Tested up to: 6. 7.28 Stable tag: 1.5.1 67 Tested up to: 6.8 8 Stable tag: 1.5.17 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 99 99 100 100 == Changelog == 101 102 = 1.5.17 = 103 * Fix: Stricter validation when importing settings. 101 104 102 105 = 1.5.16 =
Note: See TracChangeset
for help on using the changeset viewer.