Changeset 1438

Show
Ignore:
Timestamp:
08/25/08 15:09:10 (3 months ago)
Author:
donncha
Message:

Improved confirmation message, fixes #722, props momo360modena

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/wpmu-edit.php

    r1427 r1438  
    77do_action('wpmuadminedit', ''); 
    88 
    9 if( $_GET[ 'id' ] ) {  
     9if( isset($_GET[ 'id' ]) ) {  
    1010        $id = intval( $_GET[ 'id' ] );  
    11 } elseif( $_POST[ 'id' ] ) {  
     11} elseif( isset($_POST[ 'id' ]) ) {  
    1212        $id = intval( $_POST[ 'id' ] );  
    1313} 
     
    359359        // Common 
    360360        case "confirm": 
    361                 global $wp_locale; 
     361                $referrer = ( isset($_GET['ref']) ) ? stripslashes($_GET['ref']) : $_SERVER['HTTP_REFERER']; 
     362                $referrer = clean_url($referrer); 
    362363                if( !headers_sent() ){ 
    363364                        nocache_headers(); 
     
    371372 
    372373                                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    373                                 <link rel="stylesheet" href="css/install.css" type="text/css" /> 
    374                                 <?php if ( ( $wp_locale ) && ('rtl' == $wp_locale->text_direction) ) : ?> 
    375                                         <link rel="stylesheet" href="css/install-rtl.css" type="text/css" /> 
    376                                 <?php endif; ?> 
     374                                <?php wp_admin_css( 'install', true ); ?> 
    377375                        </head> 
    378376                        <body id="error-page"> 
     
    381379                                        <input type='hidden' name='action' value='<?php echo wp_specialchars( $_GET['action2'] ) ?>' /> 
    382380                                        <input type='hidden' name='id' value='<?php echo wp_specialchars( $id ); ?>' /> 
    383                                         <input type='hidden' name='ref' value='<?php if( isset( $_GET['ref'] ) ) {echo wp_specialchars( $_GET['ref'] ); } else { echo $_SERVER['HTTP_REFERER']; } ?>' /> 
     381                                        <input type='hidden' name='ref' value='<?php echo $referrer; ?>' /> 
    384382                                        <?php wp_nonce_field( $_GET['action2'] ) ?> 
    385                                         <p>              
    386                                                 <?php echo wp_specialchars( $_GET['msg'] ) ?><br /> 
    387                                                 <input class="button" type='submit' value='<?php _e("Confirm"); ?>' /></p>       
     383                                        <p><?php echo wp_specialchars( stripslashes($_GET['msg']) ); ?></p> 
     384                                        <p class="submit"><input class="button" type='submit' value='<?php _e("Confirm"); ?>' /></p>                                             
    388385                                </form> 
    389386                        </body>