WordPress.org

Make WordPress Core

Changeset 12744


Ignore:
Timestamp:
01/17/10 07:38:27 (4 years ago)
Author:
dd32
Message:

Always set a goback link on upgrade page. Props filosofo. Fixes #10986

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade.php

    r12722 r12744  
    8383        wp_upgrade(); 
    8484 
    85             $backto = empty($_GET['backto']) ? '' : $_GET['backto'] ; 
    86             $backto = stripslashes( urldecode( $backto ) ); 
    87             $backto = esc_url_raw( $backto  ); 
     85            $backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) :  __get_option( 'home' ) . '/'; 
     86            $backto = esc_url_raw( $backto ); 
    8887            $backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/'); 
    8988        if( $wpdb->get_row( "SELECT blog_id FROM {$wpdb->blog_versions} WHERE blog_id = '{$wpdb->blogid}'" ) ) { 
Note: See TracChangeset for help on using the changeset viewer.