wp/wp-admin/network/settings.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    15 
    15 
    16 if ( ! current_user_can( 'manage_network_options' ) ) {
    16 if ( ! current_user_can( 'manage_network_options' ) ) {
    17 	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    17 	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
    18 }
    18 }
    19 
    19 
       
    20 // Used in the HTML title tag.
    20 $title       = __( 'Network Settings' );
    21 $title       = __( 'Network Settings' );
    21 $parent_file = 'settings.php';
    22 $parent_file = 'settings.php';
    22 
    23 
    23 // Handle network admin email change requests.
    24 // Handle network admin email change requests.
    24 if ( ! empty( $_GET['network_admin_hash'] ) ) {
    25 if ( ! empty( $_GET['network_admin_hash'] ) ) {
   159 			<tr>
   160 			<tr>
   160 				<th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ); ?></label></th>
   161 				<th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ); ?></label></th>
   161 				<td>
   162 				<td>
   162 					<input name="new_admin_email" type="email" id="admin_email" aria-describedby="admin-email-desc" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ); ?>" />
   163 					<input name="new_admin_email" type="email" id="admin_email" aria-describedby="admin-email-desc" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ); ?>" />
   163 					<p class="description" id="admin-email-desc">
   164 					<p class="description" id="admin-email-desc">
   164 						<?php _e( 'This address is used for admin purposes. If you change this, we will send you an email at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?>
   165 						<?php _e( 'This address is used for admin purposes. If you change this, an email will be sent to your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?>
   165 					</p>
   166 					</p>
   166 					<?php
   167 					<?php
   167 					$new_admin_email = get_site_option( 'new_admin_email' );
   168 					$new_admin_email = get_site_option( 'new_admin_email' );
   168 					if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) :
   169 					if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) :
   169 						?>
   170 						?>