Changeset 41254 for trunk/src/wp-admin/options-general.php
- Timestamp:
- 08/14/2017 08:12:23 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-general.php
r40823 r41254 57 57 58 58 <table class="form-table"> 59 59 60 <tr> 60 61 <th scope="row"><label for="blogname"><?php _e('Site Title') ?></label></th> 61 62 <td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" class="regular-text" /></td> 62 63 </tr> 64 63 65 <tr> 64 66 <th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th> … … 66 68 <p class="description" id="tagline-description"><?php _e( 'In a few words, explain what this site is about.' ) ?></p></td> 67 69 </tr> 70 68 71 <?php if ( !is_multisite() ) { ?> 72 69 73 <tr> 70 74 <th scope="row"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></th> 71 75 <td><input name="siteurl" type="url" id="siteurl" value="<?php form_option( 'siteurl' ); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td> 72 76 </tr> 77 73 78 <tr> 74 79 <th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th> … … 78 83 <?php endif; ?> 79 84 </tr> 80 <tr> 81 <th scope="row"><label for="admin_email"><?php _e('Email Address') ?> </label></th> 82 <td><input name="admin_email" type="email" id="admin_email" aria-describedby="admin-email-description" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" /> 83 <p class="description" id="admin-email-description"><?php _e( 'This address is used for admin purposes, like new user notification.' ) ?></p></td> 84 </tr> 85 86 <?php } ?> 87 88 <tr> 89 <th scope="row"><label for="new_admin_email"><?php _e( 'Email Address' ); ?></label></th> 90 <td><input name="new_admin_email" type="email" id="new_admin_email" aria-describedby="new-admin-email-description" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" /> 91 <p class="description" id="new-admin-email-description"><?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>' ); ?></p> 92 <?php 93 $new_admin_email = get_option( 'new_admin_email' ); 94 if ( $new_admin_email && $new_admin_email != get_option( 'admin_email' ) ) : ?> 95 <div class="updated inline"> 96 <p><?php 97 printf( 98 /* translators: %s: new admin email */ 99 __( 'There is a pending change of the admin email to %s.' ), 100 '<code>' . esc_html( $new_admin_email ) . '</code>' 101 ); 102 printf( 103 ' <a href="%1$s">%2$s</a>', 104 esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ), 105 __( 'Cancel' ) 106 ); 107 ?></p> 108 </div> 109 <?php endif; ?> 110 </td> 111 </tr> 112 113 <?php if ( ! is_multisite() ) { ?> 114 85 115 <tr> 86 116 <th scope="row"><?php _e('Membership') ?></th> … … 90 120 </fieldset></td> 91 121 </tr> 122 92 123 <tr> 93 124 <th scope="row"><label for="default_role"><?php _e('New User Default Role') ?></label></th> … … 96 127 </td> 97 128 </tr> 98 <?php } else { ?> 99 <tr> 100 <th scope="row"><label for="new_admin_email"><?php _e('Email Address') ?> </label></th> 101 <td><input name="new_admin_email" type="email" id="new_admin_email" aria-describedby="new-admin-email-description" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" /> 102 <p class="description" id="new-admin-email-description"><?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>' ) ?></p> 103 <?php 104 $new_admin_email = get_option( 'new_admin_email' ); 105 if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?> 106 <div class="updated inline"> 107 <p><?php 108 printf( 109 /* translators: %s: new admin email */ 110 __( 'There is a pending change of the admin email to %s.' ), 111 '<code>' . esc_html( $new_admin_email ) . '</code>' 112 ); 113 printf( 114 ' <a href="%1$s">%2$s</a>', 115 esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ), 116 __( 'Cancel' ) 117 ); 118 ?></p> 119 </div> 120 <?php endif; ?> 121 </td> 122 </tr> 129 123 130 <?php } 124 131
Note: See TracChangeset
for help on using the changeset viewer.