PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 All 234 releases
← All changes | src/install/activate.php +2 -2 3.8.3 → trunk View file →
@@ -42,10 +42,10 @@
42 42 $options = new Options();
43 43
44 44 if ( ! empty( $options['version'] ) ) {
45 45 // Check if we will be able to upgrade.
46 - if ( version_compare( $options['version'], static::get_plugin_version(), '<' ) ) {
47 - ( new PLL_Upgrade( $options ) )->can_activate();
46 + if ( version_compare( $options['version'], static::get_plugin_version(), '<' ) && ! ( new PLL_Upgrade( $options ) )->can_upgrade() ) {
47 + return;
48 48 }
49 49 } else {
50 50 $options['version'] = static::get_plugin_version();
51 51 }