Make WordPress Core

Ticket #30716: 30716.2.patch

File 30716.2.patch, 2.7 KB (added by iseulde, 8 years ago)
  • src/wp-admin/includes/template.php

     
    784784        $month = '<label><span class="screen-reader-text">' . __( 'Month' ) . '</span><select ' . ( $multi ? '' : 'id="mm" ' ) . 'name="mm"' . $tab_index_attribute . ">\n";
    785785        for ( $i = 1; $i < 13; $i = $i +1 ) {
    786786                $monthnum = zeroise($i, 2);
    787                 $month .= "\t\t\t" . '<option value="' . $monthnum . '" ' . selected( $monthnum, $mm, false ) . '>';
     787                $monthtext = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
     788                $month .= "\t\t\t" . '<option value="' . $monthnum . '" data-text="' . $monthtext . '" ' . selected( $monthnum, $mm, false ) . '>';
    788789                /* translators: 1: month number (01, 02, etc.), 2: month abbreviation */
    789                 $month .= sprintf( __( '%1$s-%2$s' ), $monthnum, $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) ) . "</option>\n";
     790                $month .= sprintf( __( '%1$s-%2$s' ), $monthnum, $monthtext ) . "</option>\n";
    790791        }
    791792        $month .= '</select></label>';
    792793
     
    797798
    798799        echo '<div class="timestamp-wrap">';
    799800        /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
    800         printf( __( '%1$s %2$s, %3$s @ %4$s : %5$s' ), $month, $day, $year, $hour, $minute );
     801        printf( __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), $month, $day, $year, $hour, $minute );
    801802
    802803        echo '</div><input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
    803804
  • src/wp-admin/js/post.js

     
    558558                                $('#timestamp').html(stamp);
    559559                        } else {
    560560                                $('#timestamp').html(
    561                                         publishOn + ' <b>' +
    562                                         postL10n.dateFormat.replace( '%1$s', $('option[value="' + $('#mm').val() + '"]', '#mm').text() )
     561                                        '\n' + publishOn + ' <b>' +
     562                                        postL10n.dateFormat.replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr( 'data-text' ) )
    563563                                                .replace( '%2$s', jj )
    564564                                                .replace( '%3$s', aa )
    565565                                                .replace( '%4$s', hh )
  • src/wp-includes/script-loader.php

     
    487487                        'publishOnFuture' =>  __('Schedule for:'),
    488488                        'publishOnPast' => __('Published on:'),
    489489                        /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
    490                         'dateFormat' => __('%1$s %2$s, %3$s @ %4$s : %5$s'),
     490                        'dateFormat' => __('%1$s %2$s, %3$s @ %4$s:%5$s'),
    491491                        'showcomm' => __('Show more comments'),
    492492                        'endcomm' => __('No more comments found.'),
    493493                        'publish' => __('Publish'),