diff -r 490d5cc509ed -r cf61fcea0001 wp/wp-admin/options-general.php --- a/wp/wp-admin/options-general.php Tue Jun 09 11:14:17 2015 +0000 +++ b/wp/wp-admin/options-general.php Mon Oct 14 17:39:30 2019 +0200 @@ -9,76 +9,17 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); -/** WordPress Translation Install API */ +/** WordPress Translation Installation API */ require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); if ( ! current_user_can( 'manage_options' ) ) - wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); + wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); $title = __('General Settings'); $parent_file = 'options-general.php'; -/* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */ +/* translators: date and time format for exact current time, mainly about timezones, see https://secure.php.net/date */ $timezone_format = _x('Y-m-d H:i:s', 'timezone date format'); -/** - * Display JavaScript on the page. - * - * @since 3.5.0 - */ -function options_general_add_js() { -?> - -' . __('The fields on this screen determine some of the basics of your site setup.') . '

' . @@ -101,44 +42,83 @@ get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . - '

' . __('Support Forums') . '

' + '

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

' . + '

' . __('Support Forums') . '

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

+

+ + + + + + +

want your site home page to be different from your WordPress installation directory.' ), + __( 'https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory' ) + ); +?>

+ + + + + - - + + + + + + - - - - - - + + + + + + + - UTC time is %s'), date_i18n($timezone_format, false, 'gmt')); ?> - - %1$s'), date_i18n($timezone_format)); ?> +

+ +

+ ' . __( 'UTC' ) . '', + '' . date_i18n( $timezone_format, false, true ) . '' + ); + ?> + + ' . date_i18n( $timezone_format ) . '' + ); + ?> -

- -
+

+ + +

%s.') : - __('Standard time begins on: %s.'); + /* 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']) ) ); + printf( $message, + '' . date_i18n( + __( 'F j, Y' ) . ' ' . __( 'g:i a' ), + $tr['ts'] + ( $tz_offset - $tr['offset'] ) + ) . '' + ); } else { - _e('This timezone does not observe daylight saving time.'); + _e( 'This timezone does not observe daylight saving time.' ); } } // Set back to UTC. date_default_timezone_set('UTC'); ?> +

@@ -254,7 +289,7 @@
' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format ) . '' . esc_html( $format ) . "
\n"; } - echo ' \n"; - echo ' ' . __( 'example:' ) . ' ' . date_i18n( get_option('date_format') ) . " \n"; + echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom date format in the following field' ) . '' . + '' . + '' . + '
' . + '

' . __( 'Preview:' ) . ' ' . date_i18n( get_option( 'date_format' ) ) . '' . + "\n" . '

'; ?>
@@ -288,7 +327,7 @@
' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format ) . '' . esc_html( $format ) . "
\n"; } - echo ' \n"; - echo ' ' . __( 'example:' ) . ' ' . date_i18n( get_option('time_format') ) . " \n"; + echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom time format in the following field' ) . '' . + '' . + '' . + '
' . + '

' . __( 'Preview:' ) . ' ' . date_i18n( get_option( 'time_format' ) ) . '' . + "\n" . '

'; - echo "\t

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

\n"; + echo "\t

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

\n"; ?>
@@ -321,6 +364,9 @@ - - - - - - -

class="regular-text code" />
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.' ); ?>

+ +
+

' . esc_html( $new_admin_email ) . '' + ); + printf( + ' %2$s', + esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ), + __( 'Cancel' ) + ); + ?>

+
+ +
-

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

- -
-

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

-
- -
+ 'WPLANG', + 'id' => 'WPLANG', + 'selected' => $locale, + 'languages' => $languages, + 'translations' => $translations, + 'show_available_translations' => current_user_can( 'install_languages' ) && wp_can_install_language_pack(), + ) ); + + // Add note about deprecated WPLANG constant. + if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) { + if ( is_multisite() && current_user_can( 'manage_network_options' ) + || ! is_multisite() && current_user_can( 'manage_options' ) ) { + ?> +

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

+ +
- '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' ); ?> -

- -