Make date format consistent across the admin
The 'date_format' and 'time_format' options shouldn't affect the backend. See #30864 Built from https://develop.svn.wordpress.org/trunk@35811 git-svn-id: http://core.svn.wordpress.org/trunk@35775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -550,7 +550,7 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
|
||||
$title = _draft_or_post_title( $draft->ID );
|
||||
echo "<li>\n";
|
||||
echo '<div class="draft-title"><a href="' . esc_url( $url ) . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ) . '">' . esc_html( $title ) . '</a>';
|
||||
echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( get_option( 'date_format' ), $draft ) . '</time></div>';
|
||||
echo '<time datetime="' . get_the_time( 'c', $draft ) . '">' . get_the_time( __( 'F j, Y' ), $draft ) . '</time></div>';
|
||||
if ( $the_content = wp_trim_words( $draft->post_content, 10 ) ) {
|
||||
echo '<p>' . $the_content . '</p>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user