wp/wp-admin/options-general.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    14 
    14 
    15 if ( ! current_user_can( 'manage_options' ) ) {
    15 if ( ! current_user_can( 'manage_options' ) ) {
    16 	wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    16 	wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
    17 }
    17 }
    18 
    18 
       
    19 // Used in the HTML title tag.
    19 $title       = __( 'General Settings' );
    20 $title       = __( 'General Settings' );
    20 $parent_file = 'options-general.php';
    21 $parent_file = 'options-general.php';
    21 /* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/manual/datetime.format.php */
    22 /* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/manual/datetime.format.php */
    22 $timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' );
    23 $timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' );
    23 
    24 
    25 
    26 
    26 $options_help = '<p>' . __( 'The fields on this screen determine some of the basics of your site setup.' ) . '</p>' .
    27 $options_help = '<p>' . __( 'The fields on this screen determine some of the basics of your site setup.' ) . '</p>' .
    27 	'<p>' . __( 'Most themes display the site title at the top of every page, in the title bar of the browser, and as the identifying name for syndicated feeds. The tagline is also displayed by many themes.' ) . '</p>';
    28 	'<p>' . __( 'Most themes display the site title at the top of every page, in the title bar of the browser, and as the identifying name for syndicated feeds. The tagline is also displayed by many themes.' ) . '</p>';
    28 
    29 
    29 if ( ! is_multisite() ) {
    30 if ( ! is_multisite() ) {
    30 	$options_help .= '<p>' . __( 'The WordPress URL and the Site URL can be the same (example.com) or different; for example, having the WordPress core files (example.com/wordpress) in a subdirectory instead of the root directory.' ) . '</p>' .
    31 	$options_help .= '<p>' . __( 'The WordPress URL and the site URL can be the same (example.com) or different; for example, having the WordPress core files (example.com/wordpress) in a subdirectory instead of the root directory.' ) . '</p>' .
    31 		'<p>' . __( 'If you want site visitors to be able to register themselves, as opposed to by the site administrator, check the membership box. A default user role can be set for all new users, whether self-registered or registered by the site admin.' ) . '</p>';
    32 		'<p>' . __( 'If you want site visitors to be able to register themselves, as opposed to by the site administrator, check the membership box. A default user role can be set for all new users, whether self-registered or registered by the site admin.' ) . '</p>';
    32 }
    33 }
    33 
    34 
    34 $options_help .= '<p>' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '</p>' .
    35 $options_help .= '<p>' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '</p>' .
    35 	'<p>' . __( 'UTC means Coordinated Universal Time.' ) . '</p>' .
    36 	'<p>' . __( 'UTC means Coordinated Universal Time.' ) . '</p>' .
   108 <?php } ?>
   109 <?php } ?>
   109 
   110 
   110 <tr>
   111 <tr>
   111 <th scope="row"><label for="new_admin_email"><?php _e( 'Administration Email Address' ); ?></label></th>
   112 <th scope="row"><label for="new_admin_email"><?php _e( 'Administration Email Address' ); ?></label></th>
   112 <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" />
   113 <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" />
   113 <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>
   114 <p class="description" id="new-admin-email-description"><?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>' ); ?></p>
   114 <?php
   115 <?php
   115 $new_admin_email = get_option( 'new_admin_email' );
   116 $new_admin_email = get_option( 'new_admin_email' );
   116 if ( $new_admin_email && get_option( 'admin_email' ) !== $new_admin_email ) :
   117 if ( $new_admin_email && get_option( 'admin_email' ) !== $new_admin_email ) :
   117 	?>
   118 	?>
   118 	<div class="updated inline">
   119 	<div class="updated inline">