← All changes
|
vendor/codeinwp/themeisle-sdk/src/Common/Abstract_module.php
+2
-16
4.0.7
→
3.10.8
View file →
| @@ -38,12 +38,8 @@ | ||
| 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', | |
| 44 | - 'learning-management-system' => 'learning-management-system/lms.php', | |
| 45 | - 'wp-cloudflare-page-cache' => 'wp-cloudflare-page-cache/wp-cloudflare-super-page-cache.php', | |
| 46 | 42 | ]; |
| 47 | 43 | |
| 48 | 44 | /** |
| 49 | 45 | * Product which use the module. |
| @@ -114,9 +110,9 @@ | ||
| 114 | 110 | * $themeisle_sdk_max_path can point to the theme when the theme version is higher. |
| 115 | 111 | * hence we also need to check that the path does not point to the theme else this will break the URL. |
| 116 | 112 | * References: https://github.com/Codeinwp/neve-pro-addon/issues/2403 |
| 117 | 113 | */ |
| 118 | - if ( ( $this->product->is_plugin() || $this->product->is_theme() ) && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) { | |
| 114 | + if ( $this->product->is_plugin() && false === strpos( $themeisle_sdk_max_path, get_template_directory() ) ) { | |
| 119 | 115 | return plugins_url( '/', $themeisle_sdk_max_path . '/themeisle-sdk/' ); |
| 120 | 116 | }; |
| 121 | 117 | |
| 122 | 118 | return get_template_directory_uri() . '/vendor/codeinwp/themeisle-sdk/'; |
| @@ -140,10 +136,9 @@ | ||
| 140 | 136 | array( |
| 141 | 137 | 'slug' => $slug, |
| 142 | 138 | 'fields' => array( |
| 143 | 139 | 'downloaded' => false, |
| 144 | - 'rating' => true, | |
| 145 | - 'ratings' => true, | |
| 140 | + 'rating' => false, | |
| 146 | 141 | 'description' => false, |
| 147 | 142 | 'short_description' => true, |
| 148 | 143 | 'donate_link' => false, |
| 149 | 144 | 'tags' => false, |
| @@ -221,15 +216,6 @@ | ||
| 221 | 216 | |
| 222 | 217 | $plugin = isset( $this->plugin_paths[ $plugin ] ) ? $this->plugin_paths[ $plugin ] : $plugin . '/' . $plugin . '.php'; |
| 223 | 218 | |
| 224 | 219 | return is_plugin_active( $plugin ); |
| 225 | - } | |
| 226 | - | |
| 227 | - /** | |
| 228 | - * Get the current date. | |
| 229 | - * | |
| 230 | - * @return \DateTime The date time. | |
| 231 | - */ | |
| 232 | - public function get_current_date() { | |
| 233 | - return apply_filters( 'themeisle_sdk_current_date', new \DateTime( 'now' ) ); | |
| 234 | 220 | } |
| 235 | 221 | } |