Changeset 3012235
- Timestamp:
- 12/20/2023 01:16:59 AM (2 years ago)
- Location:
- kadence-starter-templates/trunk
- Files:
-
- 4 edited
-
class-kadence-starter-templates.php (modified) (3 diffs)
-
inc/class-template-database-importer.php (modified) (1 diff)
-
kadence-starter-templates.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kadence-starter-templates/trunk/class-kadence-starter-templates.php
r2982716 r3012235 198 198 } 199 199 if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) { 200 define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.2 1' );200 define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.23' ); 201 201 } 202 202 } … … 1034 1034 $has_content = ( 0 < wp_count_posts( 'attachment' )->inherit ? true : false ); 1035 1035 } 1036 $current_user = wp_get_current_user(); 1037 $user_email = $current_user->user_email; 1036 1038 if ( class_exists( 'Kadence_Theme_Pro' ) ) { 1037 if ( is_multisite() && ! apply_filters( 'kadence_activation_individual_multisites', false ) ) { 1038 $pro_data = get_site_option( 'ktp_api_manager' ); 1039 } else { 1040 $pro_data = get_option( 'ktp_api_manager' ); 1039 $pro_data = array(); 1040 if ( function_exists( '\KadenceWP\KadencePro\StellarWP\Uplink\get_license_key' ) ) { 1041 $pro_data['ktp_api_key'] = \KadenceWP\KadencePro\StellarWP\Uplink\get_license_key( 'kadence-theme-pro' ); 1042 $pro_data['activation_email'] = $current_user->user_email; 1043 } 1044 if ( empty( $pro_data ) ) { 1045 if ( is_multisite() && ! apply_filters( 'kadence_activation_individual_multisites', false ) ) { 1046 $pro_data = get_site_option( 'ktp_api_manager' ); 1047 } else { 1048 $pro_data = get_option( 'ktp_api_manager' ); 1049 } 1041 1050 } 1042 1051 } else { … … 1044 1053 } 1045 1054 $show_builder_choice = ( 'active' === $plugins['elementor']['state'] ? true : false ); 1046 $current_user = wp_get_current_user();1047 $user_email = $current_user->user_email;1048 1055 $subscribed = ( class_exists( 'Kadence_Theme_Pro' ) || ! empty( apply_filters( 'kadence_starter_templates_custom_array', array() ) ) ? true : get_option( 'kadence_starter_templates_subscribe' ) ); 1049 1056 wp_enqueue_style( 'kadence-starter-templates', KADENCE_STARTER_TEMPLATES_URL . 'assets/css/starter-templates.css', array( 'wp-components' ), KADENCE_STARTER_TEMPLATES_VERSION ); -
kadence-starter-templates/trunk/inc/class-template-database-importer.php
r2933560 r3012235 301 301 $ktp_api = 'free'; 302 302 if ( class_exists( 'Kadence_Theme_Pro' ) ) { 303 $ktp_data = get_option( 'ktp_api_manager' ); 304 if ( $ktp_data && isset( $ktp_data['ktp_api_key'] ) && ! empty( $ktp_data['ktp_api_key'] ) ) { 305 $ktp_api = $ktp_data['ktp_api_key']; 306 } else if ( $ktp_data && isset( $ktp_data['ithemes_key'] ) && ! empty( $ktp_data['ithemes_key'] ) ) { 307 $ktp_api = $ktp_data['ithemes_key']; 303 $pro_data = array(); 304 if ( function_exists( '\KadenceWP\KadencePro\StellarWP\Uplink\get_license_key' ) ) { 305 $pro_data['ktp_api_key'] = \KadenceWP\KadencePro\StellarWP\Uplink\get_license_key( 'kadence-theme-pro' ); 306 $pro_data['activation_email'] = $current_user->user_email; 307 } 308 if ( empty( $pro_data ) ) { 309 if ( is_multisite() && ! apply_filters( 'kadence_activation_individual_multisites', false ) ) { 310 $pro_data = get_site_option( 'ktp_api_manager' ); 311 } else { 312 $pro_data = get_option( 'ktp_api_manager' ); 313 } 314 } 315 if ( $pro_data && isset( $pro_data['ktp_api_key'] ) && ! empty( $pro_data['ktp_api_key'] ) ) { 316 $ktp_api = $pro_data['ktp_api_key']; 317 } else if ( $pro_data && isset( $pro_data['ithemes_key'] ) && ! empty( $pro_data['ithemes_key'] ) ) { 318 $ktp_api = $pro_data['ithemes_key']; 308 319 } 309 320 } -
kadence-starter-templates/trunk/kadence-starter-templates.php
r2982716 r3012235 3 3 * Plugin Name: Kadence Starter Templates 4 4 * Description: Choose the prebuilt website and click to import. 5 * Version: 1.2.2 25 * Version: 1.2.23 6 6 * Author: Kadence WP 7 7 * Author URI: https://kadencewp.com/ -
kadence-starter-templates/trunk/readme.txt
r2982716 r3012235 3 3 Tags: templates, gutenberg 4 4 Requires at least: 5.6 5 Tested up to: 6. 36 Stable tag: 1.2.2 25 Tested up to: 6.4 6 Stable tag: 1.2.23 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 127 127 == Changelog == 128 128 129 = 1.2.23 = 130 * Fix: Issue with Pro site imports. 131 129 132 = 1.2.22 = 130 133 * Add: Import webp images support.
Note: See TracChangeset
for help on using the changeset viewer.