PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.0.2
ShopBuilder – WooCommerce Builder For Elementor v2.0.2
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/ShopBuilder.php +2 -18 2.1.12.0.2 View file →
@@ -17,9 +17,9 @@
17 17 use RadiusTheme\SB\Controllers\Hooks\FilterHooks;
18 18 use RadiusTheme\SB\Controllers\Hooks\ActionHooks;
19 19 use RadiusTheme\SB\Controllers\Frontend\Ajax\AddToCart;
20 20 use RadiusTheme\SB\Controllers\Frontend\Ajax\AjaxLogin;
21 -use RadiusTheme\SB\Helpers\Migration;
21 +use RadiusTheme\SB\Helpers\Fns;
22 22
23 23 // Do not allow directly accessing this file.
24 24 if ( ! defined( 'ABSPATH' ) ) {
25 25 exit( 'This script cannot be accessed directly.' );
@@ -181,10 +181,8 @@
181 181 FilterHooks::init_hooks();
182 182 ActionHooks::init_hooks();
183 183
184 184 Installation::init();
185 - Migration::init();
186 -
187 185 if ( is_admin() ) {
188 186 AdminInit::instance();
189 187 }
190 188
@@ -213,23 +211,9 @@
213 211 /**
214 212 * @return ShopBuilder
215 213 */
216 214 function rtsb() {
217 - static $cached_instance;
218 -
219 - if (null !== $cached_instance) {
220 - return $cached_instance;
221 - }
222 -
223 - $cached_instance = wp_cache_get('shopbuilder_instance', 'shopbuilder_cache');
224 -
225 - if (false === $cached_instance) {
226 - $cached_instance = ShopBuilder::instance();
227 - wp_cache_set('shopbuilder_instance', $cached_instance, 'shopbuilder_cache');
228 - }
229 -
230 - return $cached_instance;
215 + return ShopBuilder::instance();
231 216 }
232 -
233 217
234 218 rtsb();
235 219 }