Make WordPress Core

Ticket #27223: 27223.diff

File 27223.diff, 1.7 KB (added by jeremyfelt, 11 years ago)
  • src/wp-admin/network/sites.php

     
    5959                        nocache_headers();
    6060                        header( 'Content-Type: text/html; charset=utf-8' );
    6161                }
    62                 if ( $current_site->blog_id == $id )
     62                if ( $current_site->blog_id == $id ) {
    6363                        wp_die( __( 'You are not allowed to change the current site.' ) );
     64                }
     65
     66                require_once( ABSPATH . 'wp-admin/admin-header.php' );
    6467                ?>
    65                 <!DOCTYPE html>
    66                 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    67                         <head>
    68                                 <meta name="viewport" content="width=device-width" />
    69                                 <title><?php _e( 'WordPress &rsaquo; Confirm your action' ); ?></title>
    70 
    71                                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    72                                 <?php
    73                                 wp_admin_css( 'install', true );
    74                                 wp_admin_css( 'ie', true );
    75                                 ?>
    76                         </head>
    77                         <body class="wp-core-ui">
    78                                 <h1 id="logo"><a href="<?php echo esc_url( __( 'http://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1>
     68                        <div class="wrap">
     69                                <h2>Confirm your action</h2>
    7970                                <form action="sites.php?action=<?php echo esc_attr( $_GET['action2'] ) ?>" method="post">
    8071                                        <input type="hidden" name="action" value="<?php echo esc_attr( $_GET['action2'] ) ?>" />
    8172                                        <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
     
    8475                                        <p><?php echo esc_html( wp_unslash( $_GET['msg'] ) ); ?></p>
    8576                                        <?php submit_button( __('Confirm'), 'button' ); ?>
    8677                                </form>
    87                         </body>
    88                 </html>
     78                        </div>
    8979                <?php
     80                require_once( ABSPATH . 'wp-admin/admin-footer.php' );
    9081                exit();
    9182        }
    9283