Plugin Directory

Changeset 3217081


Ignore:
Timestamp:
01/05/2025 04:36:03 AM (15 months ago)
Author:
coderpress
Message:

Release Tag 1.0.11

Location:
custom-product-builder-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • custom-product-builder-for-woocommerce/trunk/README.md

    r3202046 r3217081  
    55Requires at least: 4.9
    66Tested up to: 6.7
    7 Stable tag: 1.0.10
     7Stable tag: 1.0.11
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    6363== Changelog ==
    6464
     65= 1.0.11 - Jan 05, 2025 =
     66* Updated 🚀 - Updated SDK to Latest version.
     67
    6568= 1.0.10 - Dec 04, 2024 =
    6669* Updated 🚀 - Updated SDK to Latest version.
  • custom-product-builder-for-woocommerce/trunk/custom-product-builder-for-wc.php

    r3202046 r3217081  
    77 * Author URI: https://coderpress.co/products/coinbase-commerce-for-woocommerce/
    88 * Description: Custom Product Builder For WooCommerce, Let customer design there own product.
    9  * Version: 1.0.10
     9 * Version: 1.0.11
    1010 * Author: CoderPress
    1111 * License: GPL v2 or later
  • custom-product-builder-for-woocommerce/trunk/freemius/includes/class-freemius.php

    r3202046 r3217081  
    16621662                $this->is_user_in_admin() &&
    16631663                $this->is_parallel_activation() &&
    1664                 $this->_premium_plugin_basename !== $this->premium_plugin_basename_from_parallel_activation
     1664                $this->_premium_plugin_basename !== $this->_premium_plugin_basename_from_parallel_activation
    16651665            ) {
    1666                 $this->_premium_plugin_basename = $this->premium_plugin_basename_from_parallel_activation;
     1666                $this->_premium_plugin_basename = $this->_premium_plugin_basename_from_parallel_activation;
    16671667
    16681668                register_activation_hook(
     
    16821682         */
    16831683        private function is_parallel_activation() {
    1684             return ! empty( $this->premium_plugin_basename_from_parallel_activation );
     1684            return ! empty( $this->_premium_plugin_basename_from_parallel_activation );
    16851685        }
    16861686
     
    52065206                }
    52075207
    5208                 $this->premium_plugin_basename_from_parallel_activation = $premium_basename;
     5208                $this->_premium_plugin_basename_from_parallel_activation = $premium_basename;
    52095209
    52105210                if ( is_plugin_active( $premium_basename ) ) {
  • custom-product-builder-for-woocommerce/trunk/freemius/includes/entities/class-fs-site.php

    r3202046 r3217081  
    232232            foreach ( $sandbox_wp_environment_domains as $domain) {
    233233                if (
     234                    ( $host === $domain ) ||
    234235                    fs_ends_with( $host, '.' . $domain ) ||
    235236                    fs_ends_with( $host, '-' . $domain )
  • custom-product-builder-for-woocommerce/trunk/freemius/start.php

    r3202046 r3217081  
    1616     * @var string
    1717     */
    18     $this_sdk_version = '2.10.0';
     18    $this_sdk_version = '2.10.1';
    1919
    2020    #region SDK Selection Logic --------------------------------------------------------------------
     
    109109    }
    110110
     111    $theme_name = null;
    111112    if ( $is_current_sdk_from_active_theme ) {
    112         $this_sdk_relative_path = '../' . $themes_directory_name . '/' . get_stylesheet() . '/' . $theme_candidate_sdk_basename;
     113        $theme_name             = get_stylesheet();
     114        $this_sdk_relative_path = '../' . $themes_directory_name . '/' . $theme_name . '/' . $theme_candidate_sdk_basename;
    113115        $is_theme               = true;
    114116    } else if ( $is_current_sdk_from_parent_theme ) {
    115         $this_sdk_relative_path = '../' . $themes_directory_name . '/' . get_template() . '/' . $theme_candidate_sdk_basename;
     117        $theme_name             = get_template();
     118        $this_sdk_relative_path = '../' . $themes_directory_name . '/' . $theme_name . '/' . $theme_candidate_sdk_basename;
    116119        $is_theme               = true;
    117120    } else {
    118121        $this_sdk_relative_path = plugin_basename( $fs_root_path );
    119122        $is_theme               = false;
     123
     124        /**
     125         * If this file was included from another plugin with lower SDK version, and if this plugin is symlinked, then we need to get the actual plugin path,
     126         * as the value right now will be wrong, it will only remove the directory separator from the file_path.
     127         *
     128         * The check of `fs_find_direct_caller_plugin_file` determines that this file was indeed included by a different plugin than the main plugin.
     129         */
     130        if ( DIRECTORY_SEPARATOR . $this_sdk_relative_path === $fs_root_path && function_exists( 'fs_find_direct_caller_plugin_file' ) ) {
     131            $original_plugin_dir_name = dirname( fs_find_direct_caller_plugin_file( $file_path ) );
     132
     133            // Remove everything before the original plugin directory name.
     134            $this_sdk_relative_path = substr( $this_sdk_relative_path, strpos( $this_sdk_relative_path, $original_plugin_dir_name ) );
     135
     136            unset( $original_plugin_dir_name );
     137        }
    120138    }
    121139
     
    203221        if ( $is_theme ) {
    204222            // Saving relative path and not only directory name as it could be a subfolder
    205             $plugin_path = $this_sdk_relative_path;
     223            $plugin_path = $theme_name;
    206224        } else {
    207225            $plugin_path = plugin_basename( fs_find_direct_caller_plugin_file( $file_path ) );
     
    358376    }
    359377
    360     if ( version_compare( $this_sdk_version, $fs_active_plugins->newest->version, '<' ) ) {
     378    if ( isset( $fs_active_plugins->newest ) && version_compare( $this_sdk_version, $fs_active_plugins->newest->version, '<' ) ) {
    361379        $newest_sdk = $fs_active_plugins->plugins[ $fs_active_plugins->newest->sdk_path ];
    362380
Note: See TracChangeset for help on using the changeset viewer.