Edit File by line
/home/barbar84/www/wp-admin
File: options-general.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* General settings administration panel.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Administration
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/** WordPress Administration Bootstrap */
[8] Fix | Delete
require_once __DIR__ . '/admin.php';
[9] Fix | Delete
[10] Fix | Delete
/** WordPress Translation Installation API */
[11] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
[12] Fix | Delete
[13] Fix | Delete
if ( ! current_user_can( 'manage_options' ) ) {
[14] Fix | Delete
wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) );
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
$title = __( 'General Settings' );
[18] Fix | Delete
$parent_file = 'options-general.php';
[19] Fix | Delete
/* translators: Date and time format for exact current time, mainly about timezones, see https://www.php.net/manual/datetime.format.php */
[20] Fix | Delete
$timezone_format = _x( 'Y-m-d H:i:s', 'timezone date format' );
[21] Fix | Delete
[22] Fix | Delete
add_action( 'admin_head', 'options_general_add_js' );
[23] Fix | Delete
[24] Fix | Delete
$options_help = '<p>' . __( 'The fields on this screen determine some of the basics of your site setup.' ) . '</p>' .
[25] Fix | Delete
'<p>' . __( '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.' ) . '</p>';
[26] Fix | Delete
[27] Fix | Delete
if ( ! is_multisite() ) {
[28] Fix | Delete
$options_help .= '<p>' . __( '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.' ) . '</p>' .
[29] Fix | Delete
'<p>' . __( '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.' ) . '</p>';
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
$options_help .= '<p>' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '</p>' .
[33] Fix | Delete
'<p>' . __( 'UTC means Coordinated Universal Time.' ) . '</p>' .
[34] Fix | Delete
'<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>';
[35] Fix | Delete
[36] Fix | Delete
get_current_screen()->add_help_tab(
[37] Fix | Delete
array(
[38] Fix | Delete
'id' => 'overview',
[39] Fix | Delete
'title' => __( 'Overview' ),
[40] Fix | Delete
'content' => $options_help,
[41] Fix | Delete
)
[42] Fix | Delete
);
[43] Fix | Delete
[44] Fix | Delete
get_current_screen()->set_help_sidebar(
[45] Fix | Delete
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
[46] Fix | Delete
'<p>' . __( '<a href="https://wordpress.org/support/article/settings-general-screen/">Documentation on General Settings</a>' ) . '</p>' .
[47] Fix | Delete
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
[48] Fix | Delete
);
[49] Fix | Delete
[50] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-header.php';
[51] Fix | Delete
?>
[52] Fix | Delete
[53] Fix | Delete
<div class="wrap">
[54] Fix | Delete
<h1><?php echo esc_html( $title ); ?></h1>
[55] Fix | Delete
[56] Fix | Delete
<form method="post" action="options.php" novalidate="novalidate">
[57] Fix | Delete
<?php settings_fields( 'general' ); ?>
[58] Fix | Delete
[59] Fix | Delete
<table class="form-table" role="presentation">
[60] Fix | Delete
[61] Fix | Delete
<tr>
[62] Fix | Delete
<th scope="row"><label for="blogname"><?php _e( 'Site Title' ); ?></label></th>
[63] Fix | Delete
<td><input name="blogname" type="text" id="blogname" value="<?php form_option( 'blogname' ); ?>" class="regular-text" /></td>
[64] Fix | Delete
</tr>
[65] Fix | Delete
[66] Fix | Delete
<tr>
[67] Fix | Delete
<th scope="row"><label for="blogdescription"><?php _e( 'Tagline' ); ?></label></th>
[68] Fix | Delete
<td><input name="blogdescription" type="text" id="blogdescription" aria-describedby="tagline-description" value="<?php form_option( 'blogdescription' ); ?>" class="regular-text" />
[69] Fix | Delete
<p class="description" id="tagline-description"><?php _e( 'In a few words, explain what this site is about.' ); ?></p></td>
[70] Fix | Delete
</tr>
[71] Fix | Delete
[72] Fix | Delete
<?php
[73] Fix | Delete
if ( ! is_multisite() ) {
[74] Fix | Delete
$wp_site_url_class = '';
[75] Fix | Delete
$wp_home_class = '';
[76] Fix | Delete
if ( defined( 'WP_SITEURL' ) ) {
[77] Fix | Delete
$wp_site_url_class = ' disabled';
[78] Fix | Delete
}
[79] Fix | Delete
if ( defined( 'WP_HOME' ) ) {
[80] Fix | Delete
$wp_home_class = ' disabled';
[81] Fix | Delete
}
[82] Fix | Delete
?>
[83] Fix | Delete
[84] Fix | Delete
<tr>
[85] Fix | Delete
<th scope="row"><label for="siteurl"><?php _e( 'WordPress Address (URL)' ); ?></label></th>
[86] Fix | Delete
<td><input name="siteurl" type="url" id="siteurl" value="<?php form_option( 'siteurl' ); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php echo $wp_site_url_class; ?>" /></td>
[87] Fix | Delete
</tr>
[88] Fix | Delete
[89] Fix | Delete
<tr>
[90] Fix | Delete
<th scope="row"><label for="home"><?php _e( 'Site Address (URL)' ); ?></label></th>
[91] Fix | Delete
<td><input name="home" type="url" id="home" aria-describedby="home-description" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php echo $wp_home_class; ?>" />
[92] Fix | Delete
<?php if ( ! defined( 'WP_HOME' ) ) : ?>
[93] Fix | Delete
<p class="description" id="home-description">
[94] Fix | Delete
<?php
[95] Fix | Delete
printf(
[96] Fix | Delete
/* translators: %s: Documentation URL. */
[97] Fix | Delete
__( 'Enter the address here if you <a href="%s">want your site home page to be different from your WordPress installation directory</a>.' ),
[98] Fix | Delete
__( 'https://wordpress.org/support/article/giving-wordpress-its-own-directory/' )
[99] Fix | Delete
);
[100] Fix | Delete
?>
[101] Fix | Delete
</p>
[102] Fix | Delete
<?php endif; ?>
[103] Fix | Delete
</td>
[104] Fix | Delete
</tr>
[105] Fix | Delete
[106] Fix | Delete
<?php } ?>
[107] Fix | Delete
[108] Fix | Delete
<tr>
[109] Fix | Delete
<th scope="row"><label for="new_admin_email"><?php _e( 'Administration Email Address' ); ?></label></th>
[110] Fix | Delete
<td><input name="new_admin_email" type="email" id="new_admin_email" aria-describedby="new-admin-email-description" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" />
[111] Fix | Delete
<p class="description" id="new-admin-email-description"><?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. <strong>The new address will not become active until confirmed.</strong>' ); ?></p>
[112] Fix | Delete
<?php
[113] Fix | Delete
$new_admin_email = get_option( 'new_admin_email' );
[114] Fix | Delete
if ( $new_admin_email && get_option( 'admin_email' ) !== $new_admin_email ) :
[115] Fix | Delete
?>
[116] Fix | Delete
<div class="updated inline">
[117] Fix | Delete
<p>
[118] Fix | Delete
<?php
[119] Fix | Delete
printf(
[120] Fix | Delete
/* translators: %s: New admin email. */
[121] Fix | Delete
__( 'There is a pending change of the admin email to %s.' ),
[122] Fix | Delete
'<code>' . esc_html( $new_admin_email ) . '</code>'
[123] Fix | Delete
);
[124] Fix | Delete
printf(
[125] Fix | Delete
' <a href="%1$s">%2$s</a>',
[126] Fix | Delete
esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ),
[127] Fix | Delete
__( 'Cancel' )
[128] Fix | Delete
);
[129] Fix | Delete
?>
[130] Fix | Delete
</p>
[131] Fix | Delete
</div>
[132] Fix | Delete
<?php endif; ?>
[133] Fix | Delete
</td>
[134] Fix | Delete
</tr>
[135] Fix | Delete
[136] Fix | Delete
<?php if ( ! is_multisite() ) { ?>
[137] Fix | Delete
[138] Fix | Delete
<tr>
[139] Fix | Delete
<th scope="row"><?php _e( 'Membership' ); ?></th>
[140] Fix | Delete
<td> <fieldset><legend class="screen-reader-text"><span><?php _e( 'Membership' ); ?></span></legend><label for="users_can_register">
[141] Fix | Delete
<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked( '1', get_option( 'users_can_register' ) ); ?> />
[142] Fix | Delete
<?php _e( 'Anyone can register' ); ?></label>
[143] Fix | Delete
</fieldset></td>
[144] Fix | Delete
</tr>
[145] Fix | Delete
[146] Fix | Delete
<tr>
[147] Fix | Delete
<th scope="row"><label for="default_role"><?php _e( 'New User Default Role' ); ?></label></th>
[148] Fix | Delete
<td>
[149] Fix | Delete
<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option( 'default_role' ) ); ?></select>
[150] Fix | Delete
</td>
[151] Fix | Delete
</tr>
[152] Fix | Delete
[153] Fix | Delete
<?php
[154] Fix | Delete
}
[155] Fix | Delete
[156] Fix | Delete
$languages = get_available_languages();
[157] Fix | Delete
$translations = wp_get_available_translations();
[158] Fix | Delete
if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages, true ) ) {
[159] Fix | Delete
$languages[] = WPLANG;
[160] Fix | Delete
}
[161] Fix | Delete
if ( ! empty( $languages ) || ! empty( $translations ) ) {
[162] Fix | Delete
?>
[163] Fix | Delete
<tr>
[164] Fix | Delete
<th scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label></th>
[165] Fix | Delete
<td>
[166] Fix | Delete
<?php
[167] Fix | Delete
$locale = get_locale();
[168] Fix | Delete
if ( ! in_array( $locale, $languages, true ) ) {
[169] Fix | Delete
$locale = '';
[170] Fix | Delete
}
[171] Fix | Delete
[172] Fix | Delete
wp_dropdown_languages(
[173] Fix | Delete
array(
[174] Fix | Delete
'name' => 'WPLANG',
[175] Fix | Delete
'id' => 'WPLANG',
[176] Fix | Delete
'selected' => $locale,
[177] Fix | Delete
'languages' => $languages,
[178] Fix | Delete
'translations' => $translations,
[179] Fix | Delete
'show_available_translations' => current_user_can( 'install_languages' ) && wp_can_install_language_pack(),
[180] Fix | Delete
)
[181] Fix | Delete
);
[182] Fix | Delete
[183] Fix | Delete
// Add note about deprecated WPLANG constant.
[184] Fix | Delete
if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && WPLANG !== $locale ) {
[185] Fix | Delete
_deprecated_argument(
[186] Fix | Delete
'define()',
[187] Fix | Delete
'4.0.0',
[188] Fix | Delete
/* translators: 1: WPLANG, 2: wp-config.php */
[189] Fix | Delete
sprintf( __( 'The %1$s constant in your %2$s file is no longer needed.' ), 'WPLANG', 'wp-config.php' )
[190] Fix | Delete
);
[191] Fix | Delete
}
[192] Fix | Delete
?>
[193] Fix | Delete
</td>
[194] Fix | Delete
</tr>
[195] Fix | Delete
<?php
[196] Fix | Delete
}
[197] Fix | Delete
?>
[198] Fix | Delete
<tr>
[199] Fix | Delete
<?php
[200] Fix | Delete
$current_offset = get_option( 'gmt_offset' );
[201] Fix | Delete
$tzstring = get_option( 'timezone_string' );
[202] Fix | Delete
[203] Fix | Delete
$check_zone_info = true;
[204] Fix | Delete
[205] Fix | Delete
// Remove old Etc mappings. Fallback to gmt_offset.
[206] Fix | Delete
if ( false !== strpos( $tzstring, 'Etc/GMT' ) ) {
[207] Fix | Delete
$tzstring = '';
[208] Fix | Delete
}
[209] Fix | Delete
[210] Fix | Delete
if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
[211] Fix | Delete
$check_zone_info = false;
[212] Fix | Delete
if ( 0 == $current_offset ) {
[213] Fix | Delete
$tzstring = 'UTC+0';
[214] Fix | Delete
} elseif ( $current_offset < 0 ) {
[215] Fix | Delete
$tzstring = 'UTC' . $current_offset;
[216] Fix | Delete
} else {
[217] Fix | Delete
$tzstring = 'UTC+' . $current_offset;
[218] Fix | Delete
}
[219] Fix | Delete
}
[220] Fix | Delete
[221] Fix | Delete
?>
[222] Fix | Delete
<th scope="row"><label for="timezone_string"><?php _e( 'Timezone' ); ?></label></th>
[223] Fix | Delete
<td>
[224] Fix | Delete
[225] Fix | Delete
<select id="timezone_string" name="timezone_string" aria-describedby="timezone-description">
[226] Fix | Delete
<?php echo wp_timezone_choice( $tzstring, get_user_locale() ); ?>
[227] Fix | Delete
</select>
[228] Fix | Delete
[229] Fix | Delete
<p class="description" id="timezone-description">
[230] Fix | Delete
<?php
[231] Fix | Delete
printf(
[232] Fix | Delete
/* translators: %s: UTC abbreviation */
[233] Fix | Delete
__( 'Choose either a city in the same timezone as you or a %s (Coordinated Universal Time) time offset.' ),
[234] Fix | Delete
'<abbr>UTC</abbr>'
[235] Fix | Delete
);
[236] Fix | Delete
?>
[237] Fix | Delete
</p>
[238] Fix | Delete
[239] Fix | Delete
<p class="timezone-info">
[240] Fix | Delete
<span id="utc-time">
[241] Fix | Delete
<?php
[242] Fix | Delete
printf(
[243] Fix | Delete
/* translators: %s: UTC time. */
[244] Fix | Delete
__( 'Universal time is %s.' ),
[245] Fix | Delete
'<code>' . date_i18n( $timezone_format, false, true ) . '</code>'
[246] Fix | Delete
);
[247] Fix | Delete
?>
[248] Fix | Delete
</span>
[249] Fix | Delete
<?php if ( get_option( 'timezone_string' ) || ! empty( $current_offset ) ) : ?>
[250] Fix | Delete
<span id="local-time">
[251] Fix | Delete
<?php
[252] Fix | Delete
printf(
[253] Fix | Delete
/* translators: %s: Local time. */
[254] Fix | Delete
__( 'Local time is %s.' ),
[255] Fix | Delete
'<code>' . date_i18n( $timezone_format ) . '</code>'
[256] Fix | Delete
);
[257] Fix | Delete
?>
[258] Fix | Delete
</span>
[259] Fix | Delete
<?php endif; ?>
[260] Fix | Delete
</p>
[261] Fix | Delete
[262] Fix | Delete
<?php if ( $check_zone_info && $tzstring ) : ?>
[263] Fix | Delete
<p class="timezone-info">
[264] Fix | Delete
<span>
[265] Fix | Delete
<?php
[266] Fix | Delete
$now = new DateTime( 'now', new DateTimeZone( $tzstring ) );
[267] Fix | Delete
$dst = (bool) $now->format( 'I' );
[268] Fix | Delete
[269] Fix | Delete
if ( $dst ) {
[270] Fix | Delete
_e( 'This timezone is currently in daylight saving time.' );
[271] Fix | Delete
} else {
[272] Fix | Delete
_e( 'This timezone is currently in standard time.' );
[273] Fix | Delete
}
[274] Fix | Delete
?>
[275] Fix | Delete
<br />
[276] Fix | Delete
<?php
[277] Fix | Delete
if ( in_array( $tzstring, timezone_identifiers_list(), true ) ) {
[278] Fix | Delete
$transitions = timezone_transitions_get( timezone_open( $tzstring ), time() );
[279] Fix | Delete
[280] Fix | Delete
// 0 index is the state at current time, 1 index is the next transition, if any.
[281] Fix | Delete
if ( ! empty( $transitions[1] ) ) {
[282] Fix | Delete
echo ' ';
[283] Fix | Delete
$message = $transitions[1]['isdst'] ?
[284] Fix | Delete
/* translators: %s: Date and time. */
[285] Fix | Delete
__( 'Daylight saving time begins on: %s.' ) :
[286] Fix | Delete
/* translators: %s: Date and time. */
[287] Fix | Delete
__( 'Standard time begins on: %s.' );
[288] Fix | Delete
printf(
[289] Fix | Delete
$message,
[290] Fix | Delete
'<code>' . wp_date( __( 'F j, Y' ) . ' ' . __( 'g:i a' ), $transitions[1]['ts'] ) . '</code>'
[291] Fix | Delete
);
[292] Fix | Delete
} else {
[293] Fix | Delete
_e( 'This timezone does not observe daylight saving time.' );
[294] Fix | Delete
}
[295] Fix | Delete
}
[296] Fix | Delete
?>
[297] Fix | Delete
</span>
[298] Fix | Delete
</p>
[299] Fix | Delete
<?php endif; ?>
[300] Fix | Delete
</td>
[301] Fix | Delete
[302] Fix | Delete
</tr>
[303] Fix | Delete
<tr>
[304] Fix | Delete
<th scope="row"><?php _e( 'Date Format' ); ?></th>
[305] Fix | Delete
<td>
[306] Fix | Delete
<fieldset><legend class="screen-reader-text"><span><?php _e( 'Date Format' ); ?></span></legend>
[307] Fix | Delete
<?php
[308] Fix | Delete
/**
[309] Fix | Delete
* Filters the default date formats.
[310] Fix | Delete
*
[311] Fix | Delete
* @since 2.7.0
[312] Fix | Delete
* @since 4.0.0 Added ISO date standard YYYY-MM-DD format.
[313] Fix | Delete
*
[314] Fix | Delete
* @param string[] $default_date_formats Array of default date formats.
[315] Fix | Delete
*/
[316] Fix | Delete
$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) );
[317] Fix | Delete
[318] Fix | Delete
$custom = true;
[319] Fix | Delete
[320] Fix | Delete
foreach ( $date_formats as $format ) {
[321] Fix | Delete
echo "\t<label><input type='radio' name='date_format' value='" . esc_attr( $format ) . "'";
[322] Fix | Delete
if ( get_option( 'date_format' ) === $format ) { // checked() uses "==" rather than "===".
[323] Fix | Delete
echo " checked='checked'";
[324] Fix | Delete
$custom = false;
[325] Fix | Delete
}
[326] Fix | Delete
echo ' /> <span class="date-time-text format-i18n">' . date_i18n( $format ) . '</span><code>' . esc_html( $format ) . "</code></label><br />\n";
[327] Fix | Delete
}
[328] Fix | Delete
[329] Fix | Delete
echo '<label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"';
[330] Fix | Delete
checked( $custom );
[331] Fix | Delete
echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom date format in the following field' ) . '</span></span></label>' .
[332] Fix | Delete
'<label for="date_format_custom" class="screen-reader-text">' . __( 'Custom date format:' ) . '</label>' .
[333] Fix | Delete
'<input type="text" name="date_format_custom" id="date_format_custom" value="' . esc_attr( get_option( 'date_format' ) ) . '" class="small-text" />' .
[334] Fix | Delete
'<br />' .
[335] Fix | Delete
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'date_format' ) ) . '</span>' .
[336] Fix | Delete
"<span class='spinner'></span>\n" . '</p>';
[337] Fix | Delete
?>
[338] Fix | Delete
</fieldset>
[339] Fix | Delete
</td>
[340] Fix | Delete
</tr>
[341] Fix | Delete
<tr>
[342] Fix | Delete
<th scope="row"><?php _e( 'Time Format' ); ?></th>
[343] Fix | Delete
<td>
[344] Fix | Delete
<fieldset><legend class="screen-reader-text"><span><?php _e( 'Time Format' ); ?></span></legend>
[345] Fix | Delete
<?php
[346] Fix | Delete
/**
[347] Fix | Delete
* Filters the default time formats.
[348] Fix | Delete
*
[349] Fix | Delete
* @since 2.7.0
[350] Fix | Delete
*
[351] Fix | Delete
* @param string[] $default_time_formats Array of default time formats.
[352] Fix | Delete
*/
[353] Fix | Delete
$time_formats = array_unique( apply_filters( 'time_formats', array( __( 'g:i a' ), 'g:i A', 'H:i' ) ) );
[354] Fix | Delete
[355] Fix | Delete
$custom = true;
[356] Fix | Delete
[357] Fix | Delete
foreach ( $time_formats as $format ) {
[358] Fix | Delete
echo "\t<label><input type='radio' name='time_format' value='" . esc_attr( $format ) . "'";
[359] Fix | Delete
if ( get_option( 'time_format' ) === $format ) { // checked() uses "==" rather than "===".
[360] Fix | Delete
echo " checked='checked'";
[361] Fix | Delete
$custom = false;
[362] Fix | Delete
}
[363] Fix | Delete
echo ' /> <span class="date-time-text format-i18n">' . date_i18n( $format ) . '</span><code>' . esc_html( $format ) . "</code></label><br />\n";
[364] Fix | Delete
}
[365] Fix | Delete
[366] Fix | Delete
echo '<label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';
[367] Fix | Delete
checked( $custom );
[368] Fix | Delete
echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom time format in the following field' ) . '</span></span></label>' .
[369] Fix | Delete
'<label for="time_format_custom" class="screen-reader-text">' . __( 'Custom time format:' ) . '</label>' .
[370] Fix | Delete
'<input type="text" name="time_format_custom" id="time_format_custom" value="' . esc_attr( get_option( 'time_format' ) ) . '" class="small-text" />' .
[371] Fix | Delete
'<br />' .
[372] Fix | Delete
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
[373] Fix | Delete
"<span class='spinner'></span>\n" . '</p>';
[374] Fix | Delete
[375] Fix | Delete
echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/support/article/formatting-date-and-time/">Documentation on date and time formatting</a>.' ) . "</p>\n";
[376] Fix | Delete
?>
[377] Fix | Delete
</fieldset>
[378] Fix | Delete
</td>
[379] Fix | Delete
</tr>
[380] Fix | Delete
<tr>
[381] Fix | Delete
<th scope="row"><label for="start_of_week"><?php _e( 'Week Starts On' ); ?></label></th>
[382] Fix | Delete
<td><select name="start_of_week" id="start_of_week">
[383] Fix | Delete
<?php
[384] Fix | Delete
/**
[385] Fix | Delete
* @global WP_Locale $wp_locale WordPress date and time locale object.
[386] Fix | Delete
*/
[387] Fix | Delete
global $wp_locale;
[388] Fix | Delete
[389] Fix | Delete
for ( $day_index = 0; $day_index <= 6; $day_index++ ) :
[390] Fix | Delete
$selected = ( get_option( 'start_of_week' ) == $day_index ) ? 'selected="selected"' : '';
[391] Fix | Delete
echo "\n\t<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>';
[392] Fix | Delete
endfor;
[393] Fix | Delete
?>
[394] Fix | Delete
</select></td>
[395] Fix | Delete
</tr>
[396] Fix | Delete
<?php do_settings_fields( 'general', 'default' ); ?>
[397] Fix | Delete
</table>
[398] Fix | Delete
[399] Fix | Delete
<?php do_settings_sections( 'general' ); ?>
[400] Fix | Delete
[401] Fix | Delete
<?php submit_button(); ?>
[402] Fix | Delete
</form>
[403] Fix | Delete
[404] Fix | Delete
</div>
[405] Fix | Delete
[406] Fix | Delete
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
[407] Fix | Delete
[408] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function