Changeset 11109 for trunk/wp-admin/options-general.php
- Timestamp:
- 04/28/2009 05:58:45 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-general.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r10971 r11109 211 211 212 212 foreach ( $date_formats as $format ) { 213 echo "\t<label title='" . attr ibute_escape($format) . "'><input type='radio' name='date_format' value='" . attribute_escape($format) . "'";213 echo "\t<label title='" . attr($format) . "'><input type='radio' name='date_format' value='" . 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 ibute_escape( 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="' . 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 ibute_escape($format) . "'><input type='radio' name='time_format' value='" . attribute_escape($format) . "'";245 echo "\t<label title='" . attr($format) . "'><input type='radio' name='time_format' value='" . 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 ibute_escape( 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="' . attr( get_option('time_format') ) . '" class="small-text" /> ' . date_i18n( get_option('time_format') ) . "\n"; 256 256 ?> 257 257 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.