Changeset 11204 for trunk/wp-admin/options-general.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r11190 r11204 121 121 $current_offset_name = $offset_name; 122 122 } 123 echo "<option value=\"" . attr($offset) . "\"$selected>" . sprintf(__('UTC %s'), $offset_name) . '</option>';123 echo "<option value=\"" . esc_attr($offset) . "\"$selected>" . sprintf(__('UTC %s'), $offset_name) . '</option>'; 124 124 } 125 125 ?> … … 211 211 212 212 foreach ( $date_formats as $format ) { 213 echo "\t<label title='" . attr($format) . "'><input type='radio' name='date_format' value='" .attr($format) . "'";213 echo "\t<label title='" . esc_attr($format) . "'><input type='radio' name='date_format' value='" . esc_attr($format) . "'"; 214 214 if ( get_option('date_format') === $format ) { // checked() uses "==" rather than "===" 215 215 echo " checked='checked'"; … … 221 221 echo ' <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; 222 222 checked( $custom ); 223 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . attr( get_option('date_format') ) . '" class="small-text" /> ' . date_i18n( get_option('date_format') ) . "\n";223 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . esc_attr( get_option('date_format') ) . '" class="small-text" /> ' . date_i18n( get_option('date_format') ) . "\n"; 224 224 225 225 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click “Save Changes” to update sample output.') . "</p>\n"; … … 243 243 244 244 foreach ( $time_formats as $format ) { 245 echo "\t<label title='" . attr($format) . "'><input type='radio' name='time_format' value='" .attr($format) . "'";245 echo "\t<label title='" . esc_attr($format) . "'><input type='radio' name='time_format' value='" . esc_attr($format) . "'"; 246 246 if ( get_option('time_format') === $format ) { // checked() uses "==" rather than "===" 247 247 echo " checked='checked'"; … … 253 253 echo ' <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; 254 254 checked( $custom ); 255 echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . attr( get_option('time_format') ) . '" class="small-text" /> ' . date_i18n( get_option('time_format') ) . "\n";255 echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . esc_attr( get_option('time_format') ) . '" class="small-text" /> ' . date_i18n( get_option('time_format') ) . "\n"; 256 256 ?> 257 257 </fieldset> … … 264 264 for ($day_index = 0; $day_index <= 6; $day_index++) : 265 265 $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : ''; 266 echo "\n\t<option value='" . attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>';266 echo "\n\t<option value='" . esc_attr($day_index) . "' $selected>" . $wp_locale->get_weekday($day_index) . '</option>'; 267 267 endfor; 268 268 ?> … … 275 275 276 276 <p class="submit"> 277 <input type="submit" name="Submit" class="button-primary" value="<?php _ea('Save Changes') ?>" />277 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" /> 278 278 </p> 279 279 </form>
Note: See TracChangeset
for help on using the changeset viewer.