X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f:/wp-admin/options-general.php diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index fdae33a6..70118855 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -7,7 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once('./admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'manage_options' ) ) wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); @@ -32,7 +32,7 @@ function options_general_add_js() { $("input[name='date_format_custom']").val( $(this).val() ).siblings('.example').text( $(this).siblings('span').text() ); }); $("input[name='date_format_custom']").focus(function(){ - $("#date_format_custom_radio").attr("checked", "checked"); + $( '#date_format_custom_radio' ).prop( 'checked', true ); }); $("input[name='time_format']").click(function(){ @@ -40,7 +40,7 @@ function options_general_add_js() { $("input[name='time_format_custom']").val( $(this).val() ).siblings('.example').text( $(this).siblings('span').text() ); }); $("input[name='time_format_custom']").focus(function(){ - $("#time_format_custom_radio").attr("checked", "checked"); + $( '#time_format_custom_radio' ).prop( 'checked', true ); }); $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() { var format = $(this); @@ -77,61 +77,60 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . '

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

' . - '

' . __('Support Forums') . '

' + '

' . __('Support Forums') . '

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

-
+ - + - + - + - + - + - - + - - + - + - + - @@ -262,12 +261,14 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists @@ -300,20 +302,46 @@ endfor; + - - +$languages = get_available_languages(); +if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages ) ) { + $languages[] = WPLANG; +} +if ( $languages ) { + ?> + + -

class="regular-text code" /> class="regular-text code" />
class="regular-text code" /> + class="regular-text code" />

to be different from the directory you installed WordPress.'); ?>

+

+

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

' . __('Custom:') . ' ' . date_i18n( get_option('date_format') ) . " \n"; - - echo "\t

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

\n"; ?>
' . __('Custom:') . ' ' . date_i18n( get_option('time_format') ) . " \n"; - ; + + echo "\t

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

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

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

+
@@ -324,4 +352,4 @@ endfor;
- +