Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-admin
File: options-general.php
<?php
[500] Fix | Delete
/* translators: Hidden accessibility text. */
[501] Fix | Delete
_e( 'Time Format' );
[502] Fix | Delete
?>
[503] Fix | Delete
</span></legend>
[504] Fix | Delete
<?php
[505] Fix | Delete
/**
[506] Fix | Delete
* Filters the default time formats.
[507] Fix | Delete
*
[508] Fix | Delete
* @since 2.7.0
[509] Fix | Delete
*
[510] Fix | Delete
* @param string[] $default_time_formats Array of default time formats.
[511] Fix | Delete
*/
[512] Fix | Delete
$time_formats = array_unique( apply_filters( 'time_formats', array( __( 'g:i a' ), 'g:i A', 'H:i' ) ) );
[513] Fix | Delete
[514] Fix | Delete
$custom = true;
[515] Fix | Delete
[516] Fix | Delete
foreach ( $time_formats as $format ) {
[517] Fix | Delete
echo "\t<label><input type='radio' name='time_format' value='" . esc_attr( $format ) . "'";
[518] Fix | Delete
if ( get_option( 'time_format' ) === $format ) { // checked() uses "==" rather than "===".
[519] Fix | Delete
echo " checked='checked'";
[520] Fix | Delete
$custom = false;
[521] Fix | Delete
}
[522] Fix | Delete
echo ' /> <span class="date-time-text format-i18n">' . date_i18n( $format ) . '</span><code>' . esc_html( $format ) . "</code></label><br />\n";
[523] Fix | Delete
}
[524] Fix | Delete
[525] Fix | Delete
echo '<label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';
[526] Fix | Delete
checked( $custom );
[527] Fix | Delete
echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' .
[528] Fix | Delete
/* translators: Hidden accessibility text. */
[529] Fix | Delete
__( 'enter a custom time format in the following field' ) .
[530] Fix | Delete
'</span></span></label>' .
[531] Fix | Delete
'<label for="time_format_custom" class="screen-reader-text">' .
[532] Fix | Delete
/* translators: Hidden accessibility text. */
[533] Fix | Delete
__( 'Custom time format:' ) .
[534] Fix | Delete
'</label>' .
[535] Fix | Delete
'<input type="text" name="time_format_custom" id="time_format_custom" value="' . esc_attr( get_option( 'time_format' ) ) . '" class="small-text" />' .
[536] Fix | Delete
'<br />' .
[537] Fix | Delete
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
[538] Fix | Delete
"<span class='spinner'></span>\n" . '</p>';
[539] Fix | Delete
[540] Fix | Delete
echo "\t<p class='date-time-doc'>" . __( '<a href="https://wordpress.org/documentation/article/customize-date-and-time-format/">Documentation on date and time formatting</a>.' ) . "</p>\n";
[541] Fix | Delete
?>
[542] Fix | Delete
</fieldset>
[543] Fix | Delete
</td>
[544] Fix | Delete
</tr>
[545] Fix | Delete
<tr>
[546] Fix | Delete
<th scope="row"><label for="start_of_week"><?php _e( 'Week Starts On' ); ?></label></th>
[547] Fix | Delete
<td><select name="start_of_week" id="start_of_week">
[548] Fix | Delete
<?php
[549] Fix | Delete
/**
[550] Fix | Delete
* @global WP_Locale $wp_locale WordPress date and time locale object.
[551] Fix | Delete
*/
[552] Fix | Delete
global $wp_locale;
[553] Fix | Delete
[554] Fix | Delete
for ( $day_index = 0; $day_index <= 6; $day_index++ ) :
[555] Fix | Delete
$selected = ( (int) get_option( 'start_of_week' ) === $day_index ) ? 'selected="selected"' : '';
[556] Fix | Delete
echo "\n\t<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>';
[557] Fix | Delete
endfor;
[558] Fix | Delete
?>
[559] Fix | Delete
</select></td>
[560] Fix | Delete
</tr>
[561] Fix | Delete
<?php do_settings_fields( 'general', 'default' ); ?>
[562] Fix | Delete
</table>
[563] Fix | Delete
[564] Fix | Delete
<?php do_settings_sections( 'general' ); ?>
[565] Fix | Delete
[566] Fix | Delete
<?php submit_button(); ?>
[567] Fix | Delete
</form>
[568] Fix | Delete
[569] Fix | Delete
</div>
[570] Fix | Delete
[571] Fix | Delete
<?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
[572] Fix | Delete
[573] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function