Ticket #30864: 30864.2.patch
File 30864.2.patch, 6.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/admin.php
89 89 90 90 set_screen_options(); 91 91 92 $date_format = get_option('date_format');93 $time_format = get_option('time_format');92 $date_format = __( 'F j, Y' ); 93 $time_format = __( 'g:i a' ); 94 94 95 95 wp_enqueue_script( 'common' ); 96 96 -
src/wp-admin/edit-form-advanced.php
565 565 if ( 'auto-draft' != $post->post_status ) { 566 566 echo '<span id="last-edit">'; 567 567 if ( $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) ) ) { 568 printf( __('Last edited by %1$s on %2$s at %3$s'), esc_html( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));568 printf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) ); 569 569 } else { 570 printf( __('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));570 printf( __( 'Last edited on %1$s at %2$s' ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) ); 571 571 } 572 572 echo '</span>'; 573 573 } ?> -
src/wp-admin/includes/ajax-actions.php
2128 2128 } 2129 2129 2130 2130 if ( $post ) { 2131 $last_date = mysql2date( get_option('date_format'), $post->post_modified );2132 $last_time = mysql2date( get_option('time_format'), $post->post_modified );2131 $last_date = mysql2date( __( 'F j, Y' ), $post->post_modified ); 2132 $last_time = mysql2date( __( 'g:i a' ), $post->post_modified ); 2133 2133 } else { 2134 $last_date = date_i18n( get_option('date_format') );2135 $last_time = date_i18n( get_option('time_format') );2134 $last_date = date_i18n( __( 'F j, Y' ) ); 2135 $last_time = date_i18n( __( 'g:i a' ) ); 2136 2136 } 2137 2137 2138 2138 if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) { -
src/wp-admin/includes/dashboard.php
538 538 $title = _draft_or_post_title( $draft->ID ); 539 539 echo "<li>\n"; 540 540 echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ) . '">' . esc_html( $title ) . '</a>'; 541 echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( get_option( 'date_format' ), $draft ) . '</time></div>';541 echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( __( 'F j, Y' ), $draft ) . '</time></div>'; 542 542 if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) { 543 543 echo '<p>' . $the_content . '</p>'; 544 544 } -
src/wp-admin/includes/media.php
1442 1442 <td> 1443 1443 <p><strong>" . __('File name:') . "</strong> $filename</p> 1444 1444 <p><strong>" . __('File type:') . "</strong> $post->post_mime_type</p> 1445 <p><strong>" . __('Upload date:') . "</strong> " . mysql2date( get_option('date_format'), $post->post_date ). '</p>';1445 <p><strong>" . __('Upload date:') . "</strong> " . mysql2date( __( 'F j, Y' ), $post->post_date ). '</p>'; 1446 1446 if ( !empty( $media_dims ) ) 1447 1447 $item .= "<p><strong>" . __('Dimensions:') . "</strong> $media_dims</p>\n"; 1448 1448 -
src/wp-admin/options-general.php
235 235 __('Daylight saving time begins on: <code>%s</code>.') : 236 236 __('Standard time begins on: <code>%s</code>.'); 237 237 // Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n(). 238 printf( $message, date_i18n( get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset'])) );238 printf( $message, date_i18n( __( 'F j, Y' ) . ' ' . __( 'g:i a' ) ), $tr['ts'] + ($tz_offset - $tr['offset']) ); 239 239 } else { 240 240 _e('This timezone does not observe daylight saving time.'); 241 241 } -
src/wp-admin/update-core.php
555 555 556 556 echo '<p>'; 557 557 /* translators: %1 date, %2 time. */ 558 printf( __( 'Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) );558 printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ) ), date_i18n( __( 'g:i a' ) ) ); 559 559 echo ' <a class="button" href="' . esc_url( self_admin_url('update-core.php?force-check=1') ) . '">' . __( 'Check Again' ) . '</a>'; 560 560 echo '</p>'; 561 561 -
src/wp-includes/media.php
2734 2734 'type' => $type, 2735 2735 'subtype' => $subtype, 2736 2736 'icon' => wp_mime_type_icon( $attachment->ID ), 2737 'dateFormatted' => mysql2date( get_option('date_format'), $attachment->post_date ),2737 'dateFormatted' => mysql2date( __( 'F j, Y' ), $attachment->post_date ), 2738 2738 'nonces' => array( 2739 2739 'update' => false, 2740 2740 'delete' => false,