Changeset 35337 for trunk/src/wp-admin/includes/options.php
- Timestamp:
- 10/21/2015 05:38:44 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/options.php
r34022 r35337 140 140 echo '<p class="description">' . __( 'The <a href="https://codex.wordpress.org/Glossary#Character_set">character encoding</a> of your site (UTF-8 is recommended)' ) . '</p>'; 141 141 } 142 143 /** 144 * Render the week starts on setting. 145 * 146 * @global WP_Locale $wp_locale 147 * 148 * @since 4.4.0 149 */ 150 function options_general_start_of_week() { 151 global $wp_locale; 152 ?> 153 <select name="start_of_week" id="start_of_week"> 154 <?php 155 $start_of_week = get_option( 'start_of_week' ); 156 for ( $day_index = 0; $day_index <= 6; $day_index++ ) { 157 echo "\n\t<option value='" . esc_attr( $day_index ) . "'" . selected( $start_of_week, $day_index, false ) . ">" . $wp_locale->get_weekday( $day_index ) . '</option>'; 158 } 159 ?> 160 </select> 161 <?php 162 }
Note: See TracChangeset
for help on using the changeset viewer.