PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.3.0
ShopBuilder – WooCommerce Builder For Elementor v3.3.0
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 | shopbuilder.php +22 -5 3.2.63.3.0 View file →
@@ -3,9 +3,9 @@
3 3 * @wordpress-plugin
4 4 * Plugin Name: ShopBuilder - WooCommerce Builder For Elementor
5 5 * Plugin URI: https://shopbuilderwp.com/
6 6 * Description: ShopBuilder is the ultimate WooCommerce design solution for Elementor, letting you build and customize shop, product, cart, checkout, and account pages with ease while offering a wide range of features like Quick View, Wishlist, Compare, Variation Swatches, Mini Cart, Product Add-Ons, and more to create stunning online stores.
7 - * Version: 3.2.6
7 + * Version: 3.3.0
8 8 * Author: RadiusTheme
9 9 * Author URI: https://radiustheme.com
10 10 * Text Domain: shopbuilder
11 11 * Domain Path: /languages
@@ -28,9 +28,9 @@
28 28
29 29 /**
30 30 * Define Constants.
31 31 */
32 -define( 'RTSB_VERSION', '3.2.6' );
32 +define( 'RTSB_VERSION', '3.3.0' );
33 33 define( 'RTSB_FILE', __FILE__ );
34 34 define( 'RTSB_PATH', plugin_dir_path( __FILE__ ) );
35 35 define( 'RTSB_ACTIVE_FILE_NAME', plugin_basename( __FILE__ ) );
36 36
@@ -39,16 +39,33 @@
39 39 */
40 40 require_once RTSB_PATH . 'vendor/autoload.php';
41 41
42 42 /**
43 - * @return ShopBuilder
43 + * @return ShopBuilder|null
44 44 */
45 45 function rtsb() {
46 46 static $cached_instance;
47 47 if ( null !== $cached_instance ) {
48 - return $cached_instance;
48 + return $cached_instance ?: null;
49 49 }
50 - $cached_instance = ShopBuilder::instance();
50 +
51 + try {
52 + $cached_instance = ShopBuilder::instance();
53 + } catch ( \Throwable $e ) {
54 + $cached_instance = false;
55 + error_log( 'ShopBuilder fatal: ' . $e->getMessage() . ' in ' . $e->getFile() . ':' . $e->getLine() ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
56 + add_action(
57 + 'admin_notices',
58 + function () use ( $e ) {
59 + printf(
60 + '<div class="notice notice-error"><p><strong>ShopBuilder</strong> encountered an error and has been temporarily disabled. Check the error log for details.</p><p><code>%s</code></p></div>',
61 + esc_html( $e->getMessage() )
62 + );
63 + }
64 + );
65 + return null;
66 + }
67 +
51 68 return $cached_instance;
52 69 }
53 70
54 71 rtsb();