Changeset 3217081
- Timestamp:
- 01/05/2025 04:36:03 AM (15 months ago)
- Location:
- custom-product-builder-for-woocommerce/trunk
- Files:
-
- 5 edited
-
README.md (modified) (2 diffs)
-
custom-product-builder-for-wc.php (modified) (1 diff)
-
freemius/includes/class-freemius.php (modified) (3 diffs)
-
freemius/includes/entities/class-fs-site.php (modified) (1 diff)
-
freemius/start.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-product-builder-for-woocommerce/trunk/README.md
r3202046 r3217081 5 5 Requires at least: 4.9 6 6 Tested up to: 6.7 7 Stable tag: 1.0.1 07 Stable tag: 1.0.11 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 63 63 == Changelog == 64 64 65 = 1.0.11 - Jan 05, 2025 = 66 * Updated 🚀 - Updated SDK to Latest version. 67 65 68 = 1.0.10 - Dec 04, 2024 = 66 69 * Updated 🚀 - Updated SDK to Latest version. -
custom-product-builder-for-woocommerce/trunk/custom-product-builder-for-wc.php
r3202046 r3217081 7 7 * Author URI: https://coderpress.co/products/coinbase-commerce-for-woocommerce/ 8 8 * Description: Custom Product Builder For WooCommerce, Let customer design there own product. 9 * Version: 1.0.1 09 * Version: 1.0.11 10 10 * Author: CoderPress 11 11 * License: GPL v2 or later -
custom-product-builder-for-woocommerce/trunk/freemius/includes/class-freemius.php
r3202046 r3217081 1662 1662 $this->is_user_in_admin() && 1663 1663 $this->is_parallel_activation() && 1664 $this->_premium_plugin_basename !== $this-> premium_plugin_basename_from_parallel_activation1664 $this->_premium_plugin_basename !== $this->_premium_plugin_basename_from_parallel_activation 1665 1665 ) { 1666 $this->_premium_plugin_basename = $this-> premium_plugin_basename_from_parallel_activation;1666 $this->_premium_plugin_basename = $this->_premium_plugin_basename_from_parallel_activation; 1667 1667 1668 1668 register_activation_hook( … … 1682 1682 */ 1683 1683 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 ); 1685 1685 } 1686 1686 … … 5206 5206 } 5207 5207 5208 $this-> premium_plugin_basename_from_parallel_activation = $premium_basename;5208 $this->_premium_plugin_basename_from_parallel_activation = $premium_basename; 5209 5209 5210 5210 if ( is_plugin_active( $premium_basename ) ) { -
custom-product-builder-for-woocommerce/trunk/freemius/includes/entities/class-fs-site.php
r3202046 r3217081 232 232 foreach ( $sandbox_wp_environment_domains as $domain) { 233 233 if ( 234 ( $host === $domain ) || 234 235 fs_ends_with( $host, '.' . $domain ) || 235 236 fs_ends_with( $host, '-' . $domain ) -
custom-product-builder-for-woocommerce/trunk/freemius/start.php
r3202046 r3217081 16 16 * @var string 17 17 */ 18 $this_sdk_version = '2.10. 0';18 $this_sdk_version = '2.10.1'; 19 19 20 20 #region SDK Selection Logic -------------------------------------------------------------------- … … 109 109 } 110 110 111 $theme_name = null; 111 112 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; 113 115 $is_theme = true; 114 116 } 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; 116 119 $is_theme = true; 117 120 } else { 118 121 $this_sdk_relative_path = plugin_basename( $fs_root_path ); 119 122 $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 } 120 138 } 121 139 … … 203 221 if ( $is_theme ) { 204 222 // Saving relative path and not only directory name as it could be a subfolder 205 $plugin_path = $th is_sdk_relative_path;223 $plugin_path = $theme_name; 206 224 } else { 207 225 $plugin_path = plugin_basename( fs_find_direct_caller_plugin_file( $file_path ) ); … … 358 376 } 359 377 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, '<' ) ) { 361 379 $newest_sdk = $fs_active_plugins->plugins[ $fs_active_plugins->newest->sdk_path ]; 362 380
Note: See TracChangeset
for help on using the changeset viewer.