X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..refs/tags/wordpress-4.0:/wp-admin/options-general.php?ds=sidebyside diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index d8a8b805..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.' ) ); @@ -20,10 +20,9 @@ $timezone_format = _x('Y-m-d G:i:s', 'timezone date format'); /** * Display JavaScript on the page. * - * @package WordPress - * @subpackage General_Settings_Screen + * @since 3.5.0 */ -function add_js() { +function options_general_add_js() { ?> ' . __('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.') . '

'; @@ -78,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' ); ?>
-

-
+ - + - + - + - + - + - - + - - + - + - + - @@ -263,12 +261,14 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists @@ -301,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"; + echo '/> ' . __('Custom:') . ' ' . date_i18n( get_option('date_format') ) . " \n"; ?>
' . __('Custom:') . ' ' . date_i18n( get_option('time_format') ) . " \n"; - ; + echo '/> ' . __('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' ); ?> +

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