| @@ -120,9 +120,11 @@ | ||
| 120 | 120 | private function install_compare( $version ) { |
| 121 | 121 | $installs_history = Upgrade_Manager::get_installs_history(); |
| 122 | 122 | |
| 123 | 123 | if ( empty( $installs_history ) ) { |
| 124 | - return false; | |
| 124 | + // Fresh installation: upgrade manager hasn't written history yet on this first request. | |
| 125 | + // Use the current plugin version as the effective first-install version. | |
| 126 | + return version_compare( ELEMENTOR_VERSION, $version, '>=' ); | |
| 125 | 127 | } |
| 126 | 128 | |
| 127 | 129 | $cleaned_version = preg_replace( '/-(beta|cloud|dev)\d*$/', '', key( $installs_history ) ); |
| 128 | 130 | |