X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..refs/tags/wordpress-4.4:/wp-admin/options-general.php diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 680f7ae9..220b07e8 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -1,121 +1,356 @@ ' . __('The fields on this screen determine some of the basics of your site setup.') . '

' . + '

' . __('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.') . '

'; + +if ( ! is_multisite() ) { + $options_help .= '

' . __('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.') . '

' . + '

' . __('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.') . '

'; +} + +$options_help .= '

' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '

' . + '

' . __( 'UTC means Coordinated Universal Time.' ) . '

' . + '

' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '

'; + +get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => $options_help, +) ); -include('./admin-header.php'); +get_current_screen()->set_help_sidebar( + '

' . __('For more information:') . '

' . + '

' . __('Documentation on General Settings') . '

' . + '

' . __('Support Forums') . '

' +); + +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

-
- +

+ + + + - - - + + + - - - + + + - - - + + + + - - - + + + + - - - + + + - + - + + + + - - - + + + - - + + - + - + - + + + + + + + + +
-
-
+

" />
class="regular-text code" />
" />
to be different from the directory you installed WordPress.'); ?>
class="regular-text code" /> + +

want your site home page to be different from your WordPress installation directory.' ); ?>

-
-
+


- + +
+
+ +
+

The new address will not become active until confirmed.' ) ?>

+ +
+

Cancel' ), + '' . esc_html( $new_admin_email ) . '', + esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) + ); +?>

+
+
- + + -
-UTC time is %s'), gmdate(__('Y-m-d G:i:s'))); ?>
-%2$s'), $current_offset_name, gmdate(__('Y-m-d G:i:s'), current_time('timestamp'))); ?>
- + + UTC time is %s' ), + '' . date_i18n( $timezone_format, false, 'gmt' ) . '' + ); + ?> + + ' . date_i18n( $timezone_format ) . '' + ); + ?> + +

+ +
+ + +
+ $right_now ) { + $found = true; + break; + } + } + + if ( $found ) { + echo ' '; + $message = $tr['isdst'] ? + /* translators: %s: date and time */ + __( 'Daylight saving time begins on: %s.') : + /* translators: %s: date and time */ + __( 'Standard time begins on: %s.' ); + // Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n(). + printf( $message, + '' . date_i18n( + get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), + $tr['ts'] + ( $tz_offset - $tr['offset'] ) + ) . '' + ); + } else { + _e( 'This timezone does not observe daylight saving time.' ); + } + } + // Set back to UTC. + date_default_timezone_set('UTC'); + ?> +
+

-
+
+ ' . date_i18n( $format ) . "
\n"; + } + + echo ' \n"; + echo ' ' . __( 'example:' ) . ' ' . date_i18n( get_option('date_format') ) . " \n"; +?> +
+

-
-Documentation on date formatting. Click "Save Changes" to update sample output.') ?>
+
+ ' . date_i18n( $format ) . "
\n"; + } + + echo ' \n"; + echo ' ' . __( 'example:' ) . ' ' . date_i18n( get_option('time_format') ) . " \n"; + + echo "\t

" . __('Documentation on date and time formatting.') . "

\n"; +?> +
+
+ 'WPLANG', + 'id' => 'WPLANG', + 'selected' => $locale, + 'languages' => $languages, + 'translations' => $translations, + 'show_available_translations' => ( ! is_multisite() || is_super_admin() ) && wp_can_install_language_pack(), + ) ); + + // Add note about deprecated WPLANG constant. + if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) { + if ( is_super_admin() ) { + ?> +

+ WPLANG', 'wp-config.php' ); ?> +

+ +
-

- - -

+ + +
- +