@@ -24,7 +24,7 @@ class Install {
24
24
25
25
/**
26
26
* Holds version of database at last update
27
- ] *
27
+ *
28
28
* @var string
29
29
*/
30
30
public $ db_version ;
@@ -113,11 +113,7 @@ public function check() {
113
113
if ( ! $ update ) {
114
114
$ this ->update_required = true ;
115
115
$ this ->success_db = $ this ->update ( $ this ->db_version , $ this ->plugin ->get_version (), array ( 'type ' => 'auto ' ) );
116
-
117
- return ;
118
- }
119
-
120
- if ( 'update_and_continue ' === $ update ) {
116
+ } elseif ( 'update_and_continue ' === $ update ) {
121
117
$ this ->success_db = $ this ->update ( $ this ->db_version , $ this ->plugin ->get_version (), array ( 'type ' => 'user ' ) );
122
118
}
123
119
@@ -333,7 +329,7 @@ public function prompt_update_status() {
333
329
<div class="updated">
334
330
<form method="post" action="<?php echo esc_url ( remove_query_arg ( 'wp_stream_update ' ) ) ?> " style="display:inline;">
335
331
<p><strong><?php esc_html_e ( 'Update Complete ' , 'stream ' ) ?> </strong></p>
336
- <p><?php esc_html_e ( sprintf ( 'Your Stream database has been successfully updated from %1$s to %2$s! ' , esc_html ( $ this ->db_version ), esc_html ( WP_Stream:: VERSION ) ), 'stream ' ) ?> </p>
332
+ <p><?php esc_html_e ( sprintf ( 'Your Stream database has been successfully updated from %1$s to %2$s! ' , esc_html ( $ this ->db_version ), esc_html ( $ this -> plugin -> get_version () ) ), 'stream ' ) ?> </p>
337
333
<?php submit_button ( esc_html__ ( 'Continue ' , 'stream ' ), 'secondary ' , false ) ?>
338
334
</form>
339
335
</div>
@@ -353,6 +349,7 @@ public function prompt_update_status() {
353
349
public function db_update_versions () {
354
350
$ db_update_versions = array (
355
351
'3.0.0 ' /* @version 3.0.0 Drop the stream_context table, changes to stream table */ ,
352
+ '3.0.2 ' /* @version 3.0.2 Fix uppercase values in stream table, connector column */ ,
356
353
);
357
354
358
355
/**
0 commit comments