Make WordPress Core


Ignore:
Timestamp:
12/07/2015 04:25:53 AM (10 years ago)
Author:
iseulde
Message:

Make date format consistent across the admin

The 'date_format' and 'time_format' options shouldn't affect the backend.

See #30864

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r35443 r35811  
    551551        echo "<li>\n";
    552552        echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $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>';
    554554        if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) {
    555555            echo '<p>' . $the_content . '</p>';
Note: See TracChangeset for help on using the changeset viewer.