Ticket #60640: 60640-v2.diff
File 60640-v2.diff, 619 bytes (added by , 8 months ago) |
---|
-
src/wp-admin/options-general.php
521 521 global $wp_locale; 522 522 523 523 for ( $day_index = 0; $day_index <= 6; $day_index++ ) : 524 $selected = ( get_option( 'start_of_week' ) == $day_index ) ? 'selected="selected"' : '';524 $selected = selected( (int) get_option( 'start_of_week' ), $day_index ); 525 525 echo "\n\t<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>'; 526 526 endfor; 527 527 ?>