Changeset 35685 for trunk/src/wp-admin/includes/options.php
- Timestamp:
- 11/18/2015 08:29:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/options.php
r35337 r35685 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_locale147 *148 * @since 4.4.0149 */150 function options_general_start_of_week() {151 global $wp_locale;152 ?>153 <select name="start_of_week" id="start_of_week">154 <?php155 $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 <?php162 }
Note: See TracChangeset
for help on using the changeset viewer.