Ticket #27223: 27223.diff
File 27223.diff, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-admin/network/sites.php
59 59 nocache_headers(); 60 60 header( 'Content-Type: text/html; charset=utf-8' ); 61 61 } 62 if ( $current_site->blog_id == $id ) 62 if ( $current_site->blog_id == $id ) { 63 63 wp_die( __( 'You are not allowed to change the current site.' ) ); 64 } 65 66 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 64 67 ?> 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 › 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> 79 70 <form action="sites.php?action=<?php echo esc_attr( $_GET['action2'] ) ?>" method="post"> 80 71 <input type="hidden" name="action" value="<?php echo esc_attr( $_GET['action2'] ) ?>" /> 81 72 <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> … … 84 75 <p><?php echo esc_html( wp_unslash( $_GET['msg'] ) ); ?></p> 85 76 <?php submit_button( __('Confirm'), 'button' ); ?> 86 77 </form> 87 </body> 88 </html> 78 </div> 89 79 <?php 80 require_once( ABSPATH . 'wp-admin/admin-footer.php' ); 90 81 exit(); 91 82 } 92 83