← All changes
|
vendor/codeinwp/themeisle-sdk/src/Common/Abstract_module.php
+3
-1
3.10.14
→
3.11.10
View file →
| @@ -38,8 +38,10 @@ | ||
| 38 | 38 | 'wp-landing-kit' => 'wp-landing-kit/wp-landing-kit.php', |
| 39 | 39 | 'multiple-pages-generator-by-porthas' => 'multiple-pages-generator-by-porthas/porthas-multi-pages-generator.php', |
| 40 | 40 | 'sparks-for-woocommerce' => 'sparks-for-woocommerce/sparks-for-woocommerce.php', |
| 41 | 41 | 'templates-patterns-collection' => 'templates-patterns-collection/templates-patterns-collection.php', |
| 42 | + 'wpcf7-redirect' => 'wpcf7-redirect/wpcf7-redirect.php', | |
| 43 | + 'wp-full-stripe-free' => 'wp-full-stripe-free/wp-full-stripe.php', | |
| 42 | 44 | ]; |
| 43 | 45 | |
| 44 | 46 | /** |
| 45 | 47 | * Product which use the module. |
| @@ -110,9 +112,9 @@ | ||
| 110 | 112 | * $themeisle_sdk_max_path can point to the theme when the theme version is higher. |
| 111 | 113 | * hence we also need to check that the path does not point to the theme else this will break the URL. |
| 112 | 114 | * References: https://github.com/Codeinwp/neve-pro-addon/issues/2403 |
| 113 | 115 | */ |
| 114 | - if ( $this->product->is_plugin() && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) { | |
| 116 | + if ( ( $this->product->is_plugin() || $this->product->is_theme() ) && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) { | |
| 115 | 117 | return plugins_url( '/', $themeisle_sdk_max_path . '/themeisle-sdk/' ); |
| 116 | 118 | }; |
| 117 | 119 | |
| 118 | 120 | return get_template_directory_uri() . '/vendor/codeinwp/themeisle-sdk/'; |