Ticket #30864: 30864.3.patch
File 30864.3.patch, 8.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/comment.php
199 199 printf( __( '%1$s at %2$s' ), 200 200 /* translators: comment date format. See http://php.net/date */ 201 201 get_comment_date( __( 'Y/m/d' ), $comment ), 202 get_comment_date( get_option( 'time_format' ), $comment )202 get_comment_date( __( 'g:i a' ), $comment ) 203 203 ); 204 204 ?></a> 205 205 </td> -
src/wp-admin/edit-form-advanced.php
631 631 if ( 'auto-draft' != $post->post_status ) { 632 632 echo '<span id="last-edit">'; 633 633 if ( $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) ) ) { 634 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));634 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 ) ); 635 635 } else { 636 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));636 printf( __( 'Last edited on %1$s at %2$s' ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) ); 637 637 } 638 638 echo '</span>'; 639 639 } ?> -
src/wp-admin/includes/ajax-actions.php
1237 1237 $post_data['post_type'] = $post->post_type; 1238 1238 $post_data['post_status'] = 'draft'; 1239 1239 $now = current_time('timestamp', 1); 1240 $post_data['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), date( get_option( 'date_format' ), $now ), date( get_option( 'time_format' ), $now ) );1240 $post_data['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), date( __( 'F j, Y' ), $now ), date( __( 'g:i a' ), $now ) ); 1241 1241 1242 1242 $pid = edit_post( $post_data ); 1243 1243 if ( $pid ) { … … 2227 2227 } 2228 2228 2229 2229 if ( $post ) { 2230 $last_date = mysql2date( get_option('date_format'), $post->post_modified );2231 $last_time = mysql2date( get_option('time_format'), $post->post_modified );2230 $last_date = mysql2date( __( 'F j, Y' ), $post->post_modified ); 2231 $last_time = mysql2date( __( 'g:i a' ), $post->post_modified ); 2232 2232 } else { 2233 $last_date = date_i18n( get_option('date_format') );2234 $last_time = date_i18n( get_option('time_format') );2233 $last_date = date_i18n( __( 'F j, Y' ) ); 2234 $last_time = date_i18n( __( 'g:i a' ) ); 2235 2235 } 2236 2236 2237 2237 if ( $last_id = get_post_meta( $post_id, '_edit_last', true ) ) { -
src/wp-admin/includes/class-wp-comments-list-table.php
720 720 printf( __( '%1$s at %2$s' ), 721 721 /* translators: comment date format. See http://php.net/date */ 722 722 get_comment_date( __( 'Y/m/d' ), $comment ), 723 get_comment_date( get_option( 'time_format' ), $comment )723 get_comment_date( __( 'g:i a' ), $comment ) 724 724 ); 725 725 echo '</a>'; 726 726 echo '</div>'; -
src/wp-admin/includes/dashboard.php
550 550 $title = _draft_or_post_title( $draft->ID ); 551 551 echo "<li>\n"; 552 552 echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ) . '">' . esc_html( $title ) . '</a>'; 553 echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( get_option( 'date_format' ), $draft ) . '</time></div>';553 echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( __( 'F j, Y' ), $draft ) . '</time></div>'; 554 554 if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) { 555 555 echo '<p>' . $the_content . '</p>'; 556 556 } -
src/wp-admin/includes/media.php
1455 1455 <td> 1456 1456 <p><strong>" . __('File name:') . "</strong> $filename</p> 1457 1457 <p><strong>" . __('File type:') . "</strong> $post->post_mime_type</p> 1458 <p><strong>" . __('Upload date:') . "</strong> " . mysql2date( get_option('date_format'), $post->post_date ). '</p>';1458 <p><strong>" . __('Upload date:') . "</strong> " . mysql2date( __( 'F j, Y' ), $post->post_date ). '</p>'; 1459 1459 if ( !empty( $media_dims ) ) 1460 1460 $item .= "<p><strong>" . __('Dimensions:') . "</strong> $media_dims</p>\n"; 1461 1461 -
src/wp-admin/options-general.php
73 73 <tr> 74 74 <th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th> 75 75 <td><input name="home" type="url" id="home" aria-describedby="home-description" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" /> 76 <?php if ( ! defined( 'WP_HOME' ) ) : ?> 76 <?php if ( ! defined( 'WP_HOME' ) ) : ?> 77 77 <p class="description" id="home-description"><?php _e( 'Enter the address here if you <a href="https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">want your site home page to be different from your WordPress installation directory.</a>' ); ?></p></td> 78 78 <?php endif; ?> 79 79 </tr> … … 198 198 // Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n(). 199 199 printf( $message, 200 200 '<code>' . date_i18n( 201 get_option( 'date_format' ) . ' ' . get_option( 'time_format' ),201 __( 'F j, Y' ) . ' ' . __( 'g:i a' ), 202 202 $tr['ts'] + ( $tz_offset - $tr['offset'] ) 203 203 ) . '</code>' 204 204 ); -
src/wp-admin/update-core.php
574 574 575 575 echo '<p>'; 576 576 /* translators: %1 date, %2 time. */ 577 printf( __( 'Last checked on %1$s at %2$s.'), date_i18n( get_option( 'date_format' ) ), date_i18n( get_option( 'time_format' ) ) );577 printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ) ), date_i18n( __( 'g:i a' ) ) ); 578 578 echo ' <a class="button" href="' . esc_url( self_admin_url('update-core.php?force-check=1') ) . '">' . __( 'Check Again' ) . '</a>'; 579 579 echo '</p>'; 580 580 -
src/wp-includes/media.php
2979 2979 'type' => $type, 2980 2980 'subtype' => $subtype, 2981 2981 'icon' => wp_mime_type_icon( $attachment->ID ), 2982 'dateFormatted' => mysql2date( get_option('date_format'), $attachment->post_date ),2982 'dateFormatted' => mysql2date( __( 'F j, Y' ), $attachment->post_date ), 2983 2983 'nonces' => array( 2984 2984 'update' => false, 2985 2985 'delete' => false,