Make WordPress Core

Ticket #21060: 21060.patch

File 21060.patch, 881 bytes (added by SergeyBiryukov, 14 years ago)
  • wp-admin/options-general.php

     
    231231        <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
    232232<?php
    233233
    234         $date_formats = apply_filters( 'date_formats', array(
     234        $date_formats = apply_filters( 'date_formats', array_unique( array(
    235235                __('F j, Y'),
    236236                'Y/m/d',
    237237                'm/d/Y',
    238238                'd/m/Y',
    239         ) );
     239        ) ) );
    240240
    241241        $custom = true;
    242242
     
    264264        <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
    265265<?php
    266266
    267         $time_formats = apply_filters( 'time_formats', array(
     267        $time_formats = apply_filters( 'time_formats', array_unique( array(
    268268                __('g:i a'),
    269269                'g:i A',
    270270                'H:i',
    271         ) );
     271        ) ) );
    272272
    273273        $custom = true;
    274274