X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/784f914b1e4b1c62d6657e86397c2e83bcee4295..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-admin/options-general.php diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 9091d5e3..22d475c2 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -13,11 +13,11 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); 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'); add_action('admin_head', 'options_general_add_js'); @@ -42,8 +42,8 @@ get_current_screen()->add_help_tab( array( 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' ); @@ -112,7 +112,7 @@ if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?> ); printf( ' %2$s', - esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ), + esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ), __( 'Cancel' ) ); ?>

@@ -147,17 +147,17 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists -

+

' . __( 'UTC' ) . '', - '' . date_i18n( $timezone_format, false, 'gmt' ) . '' + '' . date_i18n( $timezone_format, false, true ) . '' ); ?> @@ -231,7 +231,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists