X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..c81aba3d563f7459dc79140e4c5be67bcf506b92:/wp-admin/options-general.php diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index fdae33a6..220b07e8 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -7,7 +7,10 @@ */ /** WordPress Administration Bootstrap */ -require_once('./admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); + +/** WordPress Translation Install 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.' ) ); @@ -15,46 +18,8 @@ if ( ! current_user_can( 'manage_options' ) ) $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 */ -$timezone_format = _x('Y-m-d G:i:s', 'timezone date format'); +$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.') . '
' . @@ -65,7 +30,8 @@ if ( ! is_multisite() ) { '' . __('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 .= '' . __('UTC means Coordinated Universal Time.') . '
' . +$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( @@ -76,68 +42,75 @@ 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('./admin-header.php'); +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>