<?php
/**
* General settings administration panel.
*
* @package WordPress
* @subpackage Administration
*/
/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';
/** WordPress Translation Installation API */
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
if ( ! current_user_can( 'manage_options' ) ) {
wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
}
// Used in the HTML title tag.
$title = __( 'General Settings' );
$parent_file = 'options-general.php';
/* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/manual/datetime.format.php */
$timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' );
add_action( 'admin_head', 'options_general_add_js' );
$options_help = '
' . __( '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.' ) . '
';
if ( ! is_multisite() ) {
$options_help .= '
' . __( 'The WordPress URL and the Site URL can be the same (example.com) or different; for example, having the WordPress core files (example.com/wordpress) in a subdirectory instead of the root directory.' ) . '
' .
'
' . __( '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 .= '
' . __( '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(
'id' => 'overview',
'title' => __( 'Overview' ),
'content' => $options_help,
)
);
get_current_screen()->set_help_sidebar(
'
' . __( 'For more information:' ) . '
' .
'
' . __( 'Documentation on General Settings' ) . '
' .
'
' . __( 'Support' ) . '
'
);
require_once ABSPATH . 'wp-admin/admin-header.php';
?>
| <input name="blogname" type="text" id="blogname" value="" class="regular-text" /> | |
| <input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="" class="regular-text" />
|
|
| <input name="siteurl" type="url" id="siteurl" value="" class="regular-text code" /> | |
| <input name="home" type="url" id="home" aria-describedby="home-description" value="" class="regular-text code" />
<?php |
|
| <input name="new_admin_email" type="email" id="new_admin_email" aria-describedby="new-admin-email-description" value="" class="regular-text ltr" />
<?php _e( 'This address is used for admin purposes. If you change this, we will send you an email at your new address to confirm it. The new address will not become active until confirmed.' ); ?>
<?php |
|
|
'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. |
|
|
<?php
if ( $dst ) { <?php // 0 index is the state at current time, 1 index is the next transition, if any. |
|
|
<?php /** * @global WP_Locale $wp_locale WordPress date and time locale object. */ global $wp_locale; for ( $day_index = 0; $day_index <= 6; $day_index++ ) : |
Above is the code from this file,
I am not sure what changes to make


