@@ -75,9 +75,10 @@ private function _conf_db_init()
75
75
/**
76
76
* Version is less than v3.0, or, is a new installation
77
77
*/
78
+ $ ver_check_tag = '' ;
78
79
if (!$ ver ) {
79
80
// Try upgrade first (network will upgrade inside too)
80
- Data::cls ()->try_upgrade_conf_3_0 ();
81
+ $ ver_check_tag = Data::cls ()->try_upgrade_conf_3_0 ();
81
82
} else {
82
83
defined ('LSCWP_CUR_V ' ) || define ('LSCWP_CUR_V ' , $ ver );
83
84
@@ -87,7 +88,7 @@ private function _conf_db_init()
87
88
if ($ ver != Core::VER ) {
88
89
// Plugin version will be set inside
89
90
// Site plugin upgrade & version change will do in load_site_conf
90
- Data::cls ()->conf_upgrade ($ ver );
91
+ $ ver_check_tag = Data::cls ()->conf_upgrade ($ ver );
91
92
}
92
93
}
93
94
@@ -101,8 +102,7 @@ private function _conf_db_init()
101
102
// New install
102
103
$ this ->set_conf (self ::$ _default_options );
103
104
104
- // Check new version @since 2.9.3
105
- Cloud::version_check ('activate ' . (defined ('LSCWP_REF ' ) ? '_ ' . LSCWP_REF : '' ));
105
+ $ ver_check_tag .= ' activate ' . (defined ('LSCWP_REF ' ) ? '_ ' . LSCWP_REF : '' );
106
106
}
107
107
108
108
// Init new default/missing options
@@ -114,6 +114,10 @@ private function _conf_db_init()
114
114
115
115
// Force correct version in case a rare unexpected case that `_ver` exists but empty
116
116
self ::update_option (Base::_VER , Core::VER );
117
+
118
+ if ($ ver_check_tag ) {
119
+ Cloud::version_check ($ ver_check_tag );
120
+ }
117
121
}
118
122
119
123
/**
0 commit comments