Make WordPress Core

Ticket #28344: 28344.4.patch

File 28344.4.patch, 1.1 KB (added by swissspidy, 9 years ago)
  • src/wp-admin/options-general.php

    diff --git src/wp-admin/options-general.php src/wp-admin/options-general.php
    index cbb7d2f..726cb83 100644
    if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?> 
    167167</td>
    168168</tr>
    169169<?php } ?>
     170</table>
     171<h3 class="title"><?php _e( 'Locale' ); ?></h3>
     172<table class="form-table">
    170173<tr>
    171174<?php
    172175$current_offset = get_option('gmt_offset');
    if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists 
    317320        </fieldset>
    318321</td>
    319322</tr>
    320 <tr>
    321 <th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>
    322 <td><select name="start_of_week" id="start_of_week">
    323 <?php
    324 /**
    325  * @global WP_Locale $wp_locale
    326  */
    327 global $wp_locale;
    328 
    329 for ($day_index = 0; $day_index <= 6; $day_index++) :
    330         $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : '';
    331         echo "\n\t<option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>';
    332 endfor;
    333 ?>
    334 </select></td>
    335 </tr>
    336323<?php do_settings_fields('general', 'default'); ?>
    337324
    338325<?php