PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
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/Helpers/Fns.php +33 -2 3.2.53.2.6 View file →
@@ -37,9 +37,9 @@
37 37 * @var array
38 38 */
39 39 private static $cache = [];
40 40 /**
41 - * Check if the stored license is valid.
41 + * Check if the stored license is valid. Its Only Show Pro Label.
42 42 *
43 43 * @return bool
44 44 */
45 45 public static function has_valid_license() {
@@ -52,8 +52,39 @@
52 52 return 'valid' === $license_status;
53 53 }
54 54
55 55 /**
56 + * Check if license is valid or bypassed by theme,
57 + *
58 + * @return bool
59 + */
60 + public static function is_pro_authorized() {
61 + static $cached_result = null;
62 + if ( null !== $cached_result ) {
63 + return $cached_result;
64 + }
65 + // ❗ Step 2: If Pro not installed → no access.
66 + if ( ! function_exists( 'rtsbpro' ) ) {
67 + $cached_result = false;
68 + return $cached_result;
69 + }
70 + $current_theme = wp_get_theme()->get_stylesheet(); // Child theme And Parent Theme Need Check work or not.
71 + /**
72 + * Allowed themes (bypass license)
73 + *
74 + * @param array $themes
75 + */
76 + $allowed_themes = apply_filters( 'rt_pro_access_allowed_themes', [] );
77 + // ✅ Step 1: Theme bypass (no license check).
78 + if ( in_array( $current_theme, $allowed_themes, true ) ) {
79 + $cached_result = true;
80 + return true;
81 + }
82 + // ✅ Step 3: Normal license validation
83 + $license_status = rtsbpro()->get_license( 'license_status' );
84 + return ( 'valid' === $license_status );
85 + }
86 + /**
56 87 * Verify nonce.
57 88 *
58 89 * @return bool
59 90 */
@@ -1225,9 +1256,9 @@
1225 1256
1226 1257 $imgSize = [];
1227 1258
1228 1259 foreach ( $sizes as $key => $img ) {
1229 - $imgSize[ $key ] = ucfirst( $key ) . " ({$img['width']}*{$img['height']})";
1260 + $imgSize[ $key ] = esc_html( $key ) . " ({$img['width']}*{$img['height']})";
1230 1261 }
1231 1262
1232 1263 $imgSize['full'] = esc_html__( 'Full size', 'shopbuilder' );
1233 1264 $imgSize['rtsb_custom'] = esc_html__( 'Custom image size', 'shopbuilder' );