WordPress.org

Make WordPress Core

Ticket #12192: r13443.diff

File r13443.diff, 1023 bytes (added by jorbin, 4 years ago)

Puts notice in <div class='updated inline'>

  • options-general.php

     
    8585<tr valign="top"> 
    8686<th scope="row"><label for="admin_email"><?php _e('E-mail address') ?> </label></th> 
    8787<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" /> 
    88 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td> 
     88<span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span> 
     89<?php 
     90$new_admin_email =  get_option( 'new_admin_email' ); 
     91if (true == $new_admin_email) : ?> 
     92<div class='updated inline'> 
     93<p> 
     94<?php printf( __('There is a pending change of the admin e-mail to: %s'), $new_admin_email ); ?> 
     95</p> 
     96</div> 
     97<?php endif; ?> 
     98</td></tr> 
     99</td> 
    89100</tr> 
    90101<tr valign="top"> 
    91102<th scope="row"><?php _e('Membership') ?></th>