Make WordPress Core


Ignore:
Timestamp:
11/18/2015 08:29:44 PM (9 years ago)
Author:
ocean90
Message:

Revert [35336] and [35337].

See #28344.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r35438 r35685  
    5454
    5555<form method="post" action="options.php" novalidate="novalidate">
    56 <?php
    57 settings_fields( 'general' );
    58 
    59 /**
    60  * @global WP_Locale $wp_locale
    61  */
    62 global $wp_locale;
    63 if ( get_option( 'start_of_week' ) != $wp_locale->start_of_week ) {
    64     add_settings_field( 'start_of_week', __( 'Week Starts On' ), 'options_general_start_of_week', 'general', 'default', array( 'label_for' => 'start_of_week' ) );
    65 }
    66 ?>
     56<?php settings_fields('general'); ?>
    6757
    6858<table class="form-table">
     
    294284</td>
    295285</tr>
    296 
    297 <?php do_settings_fields( 'general', 'default' ); ?>
     286<tr>
     287<th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>
     288<td><select name="start_of_week" id="start_of_week">
     289<?php
     290/**
     291 * @global WP_Locale $wp_locale
     292 */
     293global $wp_locale;
     294
     295for ($day_index = 0; $day_index <= 6; $day_index++) :
     296    $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : '';
     297    echo "\n\t<option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>';
     298endfor;
     299?>
     300</select></td>
     301</tr>
     302<?php do_settings_fields('general', 'default'); ?>
    298303
    299304<?php
Note: See TracChangeset for help on using the changeset viewer.