Changeset 35685 for trunk/src/wp-admin/options-general.php
- Timestamp:
- 11/18/2015 08:29:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-general.php
r35438 r35685 54 54 55 55 <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'); ?> 67 57 68 58 <table class="form-table"> … … 294 284 </td> 295 285 </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 */ 293 global $wp_locale; 294 295 for ($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>'; 298 endfor; 299 ?> 300 </select></td> 301 </tr> 302 <?php do_settings_fields('general', 'default'); ?> 298 303 299 304 <?php
Note: See TracChangeset
for help on using the changeset viewer.