WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/27/2009 10:15:14 PM (12 years ago)
Author:
westi
Message:

Don't pass defaulted argument to checked(). Fixes #9032 props filosofo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-general.php

    r10150 r10670  
    154154
    155155    echo '  <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"';
    156     checked( $custom, TRUE );
     156    checked( $custom );
    157157    echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . attribute_escape( get_option('date_format') ) . '" class="small-text" /> ' . date_i18n( get_option('date_format') ) . "\n";
    158158
     
    186186
    187187    echo '  <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';
    188     checked( $custom, TRUE );
     188    checked( $custom );
    189189    echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . attribute_escape( get_option('time_format') ) . '" class="small-text" /> ' . date_i18n( get_option('time_format') ) . "\n";
    190190?>
Note: See TracChangeset for help on using the changeset viewer.