Plugin Directory

Changeset 3012235


Ignore:
Timestamp:
12/20/2023 01:16:59 AM (2 years ago)
Author:
britner
Message:

1.2.23

Location:
kadence-starter-templates/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kadence-starter-templates/trunk/class-kadence-starter-templates.php

    r2982716 r3012235  
    198198        }
    199199        if ( ! defined( 'KADENCE_STARTER_TEMPLATES_VERSION' ) ) {
    200             define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.21' );
     200            define( 'KADENCE_STARTER_TEMPLATES_VERSION', '1.2.23' );
    201201        }
    202202    }
     
    10341034            $has_content = ( 0 < wp_count_posts( 'attachment' )->inherit ? true : false );
    10351035        }
     1036        $current_user     = wp_get_current_user();
     1037        $user_email       = $current_user->user_email;
    10361038        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                }
    10411050            }
    10421051        } else {
     
    10441053        }
    10451054        $show_builder_choice = ( 'active' === $plugins['elementor']['state'] ? true : false );
    1046         $current_user     = wp_get_current_user();
    1047         $user_email       = $current_user->user_email;
    10481055        $subscribed       = ( class_exists( 'Kadence_Theme_Pro' ) || ! empty( apply_filters( 'kadence_starter_templates_custom_array', array() ) ) ? true : get_option( 'kadence_starter_templates_subscribe' ) );
    10491056        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  
    301301        $ktp_api = 'free';
    302302        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'];
    308319            }
    309320        }
  • kadence-starter-templates/trunk/kadence-starter-templates.php

    r2982716 r3012235  
    33 * Plugin Name: Kadence Starter Templates
    44 * Description: Choose the prebuilt website and click to import.
    5  * Version: 1.2.22
     5 * Version: 1.2.23
    66 * Author: Kadence WP
    77 * Author URI: https://kadencewp.com/
  • kadence-starter-templates/trunk/readme.txt

    r2982716 r3012235  
    33Tags: templates, gutenberg
    44Requires at least: 5.6
    5 Tested up to: 6.3
    6 Stable tag: 1.2.22
     5Tested up to: 6.4
     6Stable tag: 1.2.23
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    127127== Changelog ==
    128128
     129= 1.2.23 =
     130* Fix: Issue with Pro site imports.
     131
    129132= 1.2.22 =
    130133* Add: Import webp images support.
Note: See TracChangeset for help on using the changeset viewer.