Skip to content

Commit

Permalink
Prevent upgrade button from redirecting to refererer; stay on current…
Browse files Browse the repository at this point in the history
… page
  • Loading branch information
westonruter committed Apr 24, 2014
1 parent 747e4bd commit dbe4465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/install.php
Expand Up @@ -200,7 +200,7 @@ public static function update_notice_hook() {
public static function prompt_update() {
?>
<div class="error">
<form method="post" action="<?php echo esc_url( remove_query_arg( 'wp_stream_update', wp_get_referer() ) ) ?>">
<form method="post" action="<?php echo esc_url( remove_query_arg( 'wp_stream_update' ) ) ?>">
<?php wp_nonce_field( 'wp_stream_update_db' ) ?>
<input type="hidden" name="wp_stream_update" value="update_and_continue"/>
<p><strong><?php esc_html_e( 'Stream Database Update Required', 'stream' ) ?></strong></p>
Expand All @@ -223,7 +223,7 @@ public static function prompt_update_status() {
self::update_db_option();
?>
<div class="updated">
<form method="post" action="<?php echo esc_url( remove_query_arg( 'wp_stream_update', wp_get_referer() ) ) ?>" style="display:inline;">
<form method="post" action="<?php echo esc_url( remove_query_arg( 'wp_stream_update' ) ) ?>" style="display:inline;">
<p><strong><?php esc_html_e( 'Update Complete', 'stream' ) ?></strong></p>
<p><?php esc_html_e( sprintf( 'Your Stream database has been successfully updated from %1$s to %2$s!', self::$db_version, self::$current ), 'stream' ) ?></p>
<?php submit_button( esc_html__( 'Continue', 'stream' ), 'secondary', false ) ?>
Expand Down

0 comments on commit dbe4465

Please sign in to comment.