PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.3
ShopBuilder – WooCommerce Builder For Elementor v2.6.3
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/Installation.php +2 -4 2.1.42.6.3 View file →
@@ -34,9 +34,9 @@
34 34 *
35 35 * @return int|void
36 36 */
37 37 public static function check_version() {
38 - $version = ExtraSettings::instance()->get_option( 'rtsb_version' ) ?? get_option( 'rtsb_version' );
38 + $version = ExtraSettings::instance()->get_option( 'rtsb_version', '' ) ?? get_option( 'rtsb_version' );
39 39 if ( version_compare( $version, RTSB_VERSION, '<' ) ) {
40 40 if ( ! $version ) {
41 41 self::set_default_options();
42 42 if ( ! Fns::get_product() ) {
@@ -100,15 +100,14 @@
100 100 */
101 101 public static function set_default_options() {
102 102 $sections = Settings::instance()->get_sections();
103 103 foreach ( $sections as $sections_id => $section ) {
104 - $rawOptions = [];
105 104 if ( ! empty( $section['list'] ) ) {
106 105 foreach ( $section['list'] as $blocks_id => $blocks ) {
106 + $rawOptions = [];
107 107 if ( ! rtsb()->has_pro() && 'free' !== ( $blocks['package'] ?? '' ) ) {
108 108 continue;
109 109 }
110 -
111 110 $rawOptions['active'] = $blocks['active'] ?? null;
112 111
113 112 if ( ! empty( $blocks['fields'] ) ) {
114 113 foreach ( $blocks['fields'] as $field_id => $field ) {
@@ -115,9 +114,8 @@
115 114 $type = 'array' === gettype( $field['value'] ) ? [] : '';
116 115 $rawOptions[ $field_id ] = ! empty( $field['value'] ) ? $field['value'] : $type;
117 116 }
118 117 }
119 -
120 118 Fns::set_options( $sections_id, $blocks_id, $rawOptions );
121 119 }
122 120 }
123 121 }